Color.fromRGB constructor

const Color.fromRGB(
  1. int red,
  2. int green,
  3. int blue
)

Creates a color from an 24-bit RGB value.

The red, green, and blue values should be in the range 0-255.

See Color24 for a more detailed representation of 24-bit colors.

Implementation

const factory Color.fromRGB(int red, int green, int blue) = Color24.fromRGB;