platformBrightness property
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.
See also:
- MediaQuery.platformBrightnessOf, a method to find and depend on the platformBrightness defined for a BuildContext.
Implementation
final Brightness platformBrightness;