isDarkMode property

bool get isDarkMode

Indicates whether the app is currently in dark mode.

Implementation

bool get isDarkMode =>
    Theme.of(this).brightness ==
    Brightness.dark;