RGBAColor constructor

const RGBAColor({
  1. int red = 255,
  2. int green = 255,
  3. int blue = 255,
  4. int alpha = 255,
})

Implementation

const RGBAColor({
  this.red = 255,
  this.green = 255,
  this.blue = 255,
  this.alpha = 255,
})  : assert(red >= 0 && red <= 255),
      assert(green >= 0 && green <= 255),
      assert(blue >= 0 && blue <= 255),
      assert(alpha >= 0 && alpha <= 255);