luminance property

double get luminance

The Luminance of this color. The Luminance is a measure of the brightness of a color. Returns a brightness value between 0 for darkest and 1 for lightest. This value is computationally expensive to calculate.

Implementation

double get luminance => computeLuminance();