HSVColor constructor

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

Implementation

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