isLight property

bool isLight

Returns true if the color's brightness is Brightness.light, else false.

Implementation

bool get isLight => ThemeData.estimateBrightnessForColor(this) == Brightness.light;