Creates a copy of this text theme but with the given fields replaced with the new values.
Consider using Typography.black or Typography.white, which implement the typography styles in the material design specification, as a starting point.
Source
TextTheme copyWith({ TextStyle display4, TextStyle display3, TextStyle display2, TextStyle display1, TextStyle headline, TextStyle title, TextStyle subhead, TextStyle body2, TextStyle body1, TextStyle caption, TextStyle button }) { return new TextTheme( display4: display4 ?? this.display4, display3: display3 ?? this.display3, display2: display2 ?? this.display2, display1: display1 ?? this.display1, headline: headline ?? this.headline, title: title ?? this.title, subhead: subhead ?? this.subhead, body2: body2 ?? this.body2, body1: body1 ?? this.body1, caption: caption ?? this.caption, button: button ?? this.button ); }