isDark property
bool
get
isDark
Returns true
if the color is dark, otherwise false
.
Example:
Color color = Colors.blue;
bool isDark = color.isDark;
print('Is Dark: $isDark'); // Output: false
Implementation
bool get isDark => getBrightness < 128.0;