isDark property

bool get isDark

Tells if the current theme in this is dark.

Implementation

bool get isDark => brightness == Brightness.dark;