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