Color.fromARGB constructor

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

Implementation

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