CupertinoTheme constructor Null safety

const CupertinoTheme(
  1. {Key? key,
  2. required CupertinoThemeData data,
  3. required Widget child}
)

Creates a CupertinoTheme to change descendant Cupertino widgets' styling.

The data and child parameters must not be null.

Implementation

const CupertinoTheme({
  super.key,
  required this.data,
  required this.child,
}) : assert(child != null),
     assert(data != null);