Theme({Key key, @required ThemeData data, bool isMaterialAppTheme: false, Widget child })

Applies the given theme data to child.

The data and child arguments must not be null.

Source

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