isDarkMode property
bool
get
isDarkMode
Indicates whether the app is currently in dark mode.
Implementation
bool get isDarkMode =>
Theme.of(this).brightness ==
Brightness.dark;
Indicates whether the app is currently in dark mode.
bool get isDarkMode =>
Theme.of(this).brightness ==
Brightness.dark;