HSLColor constructor

const HSLColor({
  1. double alpha = 1,
  2. double hue = 360,
  3. double saturation = 1,
  4. double lightness = 1,
})

Implementation

const HSLColor({
  this.alpha = 1,
  this.hue = 360,
  this.saturation = 1,
  this.lightness = 1,
})  : assert(alpha >= 0 && alpha <= 1),
      assert(hue >= 0 && hue <= 360),
      assert(lightness >= 0 && lightness <= 1),
      assert(saturation >= 0 && saturation <= 1);