value property

  1. @Deprecated('Use component accessors like .r or .g.')
int get value

A 32 bit value representing this color.

The bits are assigned as follows:

  • Bits 24-31 are the alpha value.
  • Bits 16-23 are the red value.
  • Bits 8-15 are the green value.
  • Bits 0-7 are the blue value.

Implementation

@Deprecated('Use component accessors like .r or .g.')
int get value {
  return _floatToInt8(a) << 24 |
      _floatToInt8(r) << 16 |
      _floatToInt8(g) << 8 |
      _floatToInt8(b) << 0;
}