isDarkMode property

bool get isDarkMode

Check if the current theme is dark mode

Implementation

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