CupertinoTheme constructor

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({
  Key key,
  @required this.data,
  @required this.child,
}) : assert(child != null),
     assert(data != null),
     super(key: key);