ColorParser.rgb constructor Null safety

ColorParser.rgb(
  1. int r,
  2. int g,
  3. int b
)

create a object of this class using the RGB values

r = red value 0-255 g = green value 0-255 b = blue value 0-255

here the alpha is fully opaque 255

Implementation

ColorParser.rgb(int r, int g, int b) {
  this._color = Color.fromARGB(255, r, g, b);
  _calculateFromRGB();
}