Theme constructor

const Theme(
  1. {Key key,
  2. @required ThemeData data,
  3. bool isMaterialAppTheme: false,
  4. @required Widget child}
)

Applies the given theme data to child.

The data and child arguments must not be null.

Implementation

const Theme({
  Key key,
  @required this.data,
  this.isMaterialAppTheme = false,
  @required this.child,
}) : assert(child != null),
     assert(data != null),
     super(key: key);