isDarkMode property
bool
get
isDarkMode
Returns true if the active theme is dark mode.
Implementation
bool get isDarkMode => theme.brightness == Brightness.dark;
Returns true if the active theme is dark mode.
bool get isDarkMode => theme.brightness == Brightness.dark;