platformBrightness property Null safety

Brightness platformBrightness
final

The current brightness mode of the host platform.

For example, starting in Android Pie, battery saver mode asks all apps to render in a "dark mode".

Not all platforms necessarily support a concept of brightness mode. Those platforms will report Brightness.light in this property.

Implementation

final Brightness platformBrightness;