isDark property

bool isDark

If the ThemeData of the current BuildContext is dark

Implementation

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