isDark property
bool
get
isDark
Returns whether this theme is considered a dark theme based on background luminance.
Implementation
bool get isDark => backgroundColor.computeLuminance() < 0.5;
Returns whether this theme is considered a dark theme based on background luminance.
bool get isDark => backgroundColor.computeLuminance() < 0.5;