isPlatformDarkMode property
bool
get
isPlatformDarkMode
Check if dark mode theme is enable on platform on android Q+
Implementation
bool get isPlatformDarkMode =>
(ui.window.platformBrightness == Brightness.dark);