Color.fromARGB constructor Null safety
Construct a color from the lower 8 bits of four integers.
ais the alpha value, with 0 being transparent and 255 being fully opaque.
ris red, from 0 to 255.
gis green, from 0 to 255.
bis blue, from 0 to 255.
Out of range values are brought into range using modulo 255.
See also fromRGBO, which takes the alpha value as a floating point value.
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;