isDark property

bool get isDark

Detects when the theme is dark or not, if so returns true

Implementation

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