brightness property Null safety

Brightness brightness

The brightness override for Cupertino descendants.

Defaults to null. If a non-null Brightness is specified, the value will take precedence over the ambient MediaQueryData.platformBrightness, when determining the brightness of descendant Cupertino widgets.

If coming from a Material Theme and unspecified, brightness will be derived from the Material ThemeData's brightness.

See also:


Brightness get brightness => _cupertinoOverrideTheme.brightness ?? _materialTheme.brightness;