isPlatformLightMode top-level property

bool get isPlatformLightMode

Checks if the platform is in light mode.

Implementation

bool get isPlatformLightMode => platformBrightness == Brightness.light;