alpha property

  1. @override
num get alpha
override

The alpha channel of this color as a normalized 8-bit value (0-255).

A value of 0 means this color is fully transparent. A value of 255 means this color is fully opaque. Returns precise fractional values for 16-bit colors.

Implementation

@override
num get alpha => _alpha / 65535 * 255;