fromDecimal static method

Color fromDecimal(
  1. int decimal
)

Implementation

static Color fromDecimal(int decimal) {
  final r = ((decimal >> 16) & 0xFF) / 255.0;
  final g = ((decimal >> 8) & 0xFF) / 255.0;
  final b = (decimal & 0xFF) / 255.0;

  return Color(r, g, b);
}