light

final

Brightness

_brightness

It is now a stored property:

final

Brightness

brightness

Migration guide

Generally CupertinoThemeData.brightness
is rarely useful outside of the Flutter framework.
To retrieve the brightness for Cupertino widgets,
now use CupertinoTheme.brightnessOf instead.

With this change, it is now possible to override
CupertinoThemeData.brightness in a CupertinoThemeData
subclass to change the brightness override. For example:

class

AwaysDarkCupertinoThemeData

extends

CupertinoThemeData

Brightness

brightness

Brightness

dark