Color constructor

const Color([
  1. int red = 0,
  2. int green = 0,
  3. int blue = 0,
  4. double? alpha,
])

Constructor create Color from rgba components. Default value for red, green and blue component is 0, for alpha- null For color with specified alpha component output format will be rgba.

Implementation

const Color([this.red = 0, this.green = 0, this.blue = 0, this.alpha]);