isDark property
bool
isDark
Returns true if the color's brightness is Brightness.dark, else false.
Implementation
bool get isDark =>
ThemeData.estimateBrightnessForColor(this) == Brightness.dark;
Returns true if the color's brightness is Brightness.dark, else false.
bool get isDark =>
ThemeData.estimateBrightnessForColor(this) == Brightness.dark;