HSLColor.fromAHSL constructor

const HSLColor.fromAHSL(double alpha, double hue, double saturation, double lightness)

Creates a color.

All the arguments must not be null and be in their respective ranges. See the fields for each parameter for a description of their ranges.

Implementation

const HSLColor.fromAHSL(this.alpha, this.hue, this.saturation, this.lightness)
  : assert(alpha != null),
    assert(hue != null),
    assert(saturation != null),
    assert(lightness != null),
    assert(alpha >= 0.0),
    assert(alpha <= 1.0),
    assert(hue >= 0.0),
    assert(hue <= 360.0),
    assert(saturation >= 0.0),
    assert(saturation <= 1.0),
    assert(lightness >= 0.0),
    assert(lightness <= 1.0);