CupertinoTheme constructor

const CupertinoTheme({Key key, @required CupertinoThemeData data, @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);