isLight property
bool
get
isLight
Returns true
if the color is light, otherwise false
.
Example:
Color color = Colors.blue;
bool isLight = color.isLight;
print('Is Light: $isLight'); // Output: true
Implementation
bool get isLight => !isDark;