Color.fromARGB constructor

const Color.fromARGB(
  1. int a,
  2. int r,
  3. int g,
  4. int b,
)

Creates a color from separate alpha, red, green, and blue channels.

Implementation

const Color.fromARGB(int a, int r, int g, int b)
    : value = ((a & 255) << 24) |
          ((r & 255) << 16) |
          ((g & 255) << 8) |
          (b & 255);