decimalToColor method

Color decimalToColor(
  1. int decimalValue
)

Implementation

Color decimalToColor(int decimalValue) {
  int red = (decimalValue >> 16) & 0xFF;
  int green = (decimalValue >> 8) & 0xFF;
  int blue = decimalValue & 0xFF;

  return Color.fromARGB(255, red, green, blue);
}