isDarkMode property

bool get isDarkMode

Implementation

bool get isDarkMode =>
    MediaQuery.of(this).platformBrightness == Brightness.dark;