getLuminance property
double
get
getLuminance
Returns the luminance of the color.
Example:
Color color = Colors.blue;
double luminance = color.getLuminance;
print('Luminance: $luminance'); // Output: 0.2126
Implementation
double get getLuminance => computeLuminance();