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;