cIsDarkMode property

bool get cIsDarkMode

Checks if the dark mode theme is enabled by comparing the brightness from Theme.of(context).

Implementation

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