isDarkTheme property
bool
isDarkTheme
True if Theme.of(context).brightness
is Brightness.dark
Implementation
bool get isDarkTheme => theme.brightness == Brightness.dark;
True if Theme.of(context).brightness
is Brightness.dark
bool get isDarkTheme => theme.brightness == Brightness.dark;