isPlatformDarkMode property

bool get isPlatformDarkMode

Check if dark mode theme is enable on platform on android Q+

Implementation

bool get isPlatformDarkMode =>
    ui.PlatformDispatcher.instance.platformBrightness == Brightness.dark;