isDark property
bool
isDark
If the ThemeData of the current BuildContext is dark
Implementation
bool get isDark => brightness == Brightness.dark;
If the ThemeData of the current BuildContext is dark
bool get isDark => brightness == Brightness.dark;