luminance property

  1. @override
double get luminance
override

Returns the relative luminance of the color (0.0 = darkest, 1.0 = lightest).

Implementation

@override
double get luminance {
  // In Oklab, the L component already represents perceptual lightness/luminance
  return _l;
}