isDarkMode property

bool get isDarkMode

Checks if the current theme is dark mode.

Implementation

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