computeLuminance method

  1. @override
double computeLuminance()
override

Returns a brightness value between 0 for darkest and 1 for lightest.

Represents the relative luminance of the color. This value is computationally expensive to calculate.

See en.wikipedia.org/wiki/Relative_luminance.

Implementation

@override
double computeLuminance() => _effectiveColor.computeLuminance();