isDark property

bool get isDark

Check is current theme is dark

Implementation

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