toDecimal method

int toDecimal()

Implementation

int toDecimal() {
  final rInt = (r * 255).round();
  final gInt = (g * 255).round();
  final bInt = (b * 255).round();

  return (rInt << 16) | (gInt << 8) | bInt;
}