isDarkMode property

bool get isDarkMode

Returns true if the active theme is dark mode.

Implementation

bool get isDarkMode => theme.brightness == Brightness.dark;