isDarkMode property
bool
get
isDarkMode
Check if dark mode theme is enable
Implementation
bool get isDarkMode => theme.brightness == Brightness.dark;
Check if dark mode theme is enable
bool get isDarkMode => theme.brightness == Brightness.dark;