isDarkMode property

bool get isDarkMode

Check if dark mode theme is enable

Implementation

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