isDarkTheme property

bool get isDarkTheme

Returns whether we are currently using a dark theme.

Implementation

bool get isDarkTheme => brightness == Brightness.dark;