v4Brightness property
ThemeBrightness?
get
v4Brightness
The leans as engine v4 (2.0.0) read them: the first colour that has one, in any position. Kept so v4 themes reproduce.
Implementation
ThemeBrightness? get v4Brightness {
if (brightness != null) return brightness;
for (final c in colors) {
if (c.leanBrightness != null) return c.leanBrightness;
}
return null;
}