isDark property

bool get isDark

Returns true if the current theme mode is dark.

Implementation

bool get isDark => mode == Brightness.dark;