isDarkMode property
bool
get
isDarkMode
Checks if the dark mode theme is enabled in the current context.
Implementation
bool get isDarkMode => theme.brightness == Brightness.dark;
Checks if the dark mode theme is enabled in the current context.
bool get isDarkMode => theme.brightness == Brightness.dark;