effectiveBrightness property
ThemeBrightness?
get
effectiveBrightness
brightness, or the lean of the first colour that has one.
Implementation
ThemeBrightness? get effectiveBrightness {
if (brightness != null) return brightness;
for (final c in colors) {
if (c.leanBrightness != null) return c.leanBrightness;
}
return null;
}