isDark property

bool get isDark

Whether the brightness is equal to Brightness.dark

Implementation

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