Nullable CupertinoThemeData.brightness

Summary

Context

Description of change

Migration guide

Timeline

References

Summary

CupertinoThemeData.brightness is now nullable.

Context

CupertinoThemeData.brightness is now used to
override MediaQuery.platformBrightness for Cupertino widgets.
Before this change, the CupertinoThemeData.brightness
getter returned Brightness.light when it was set to null.

Description of change

Previously CupertinoThemeData.brightness
was implemented as a getter:

Brightness

get

brightness

_brightness

??

Brightness

light

final

Brightness