copyWith method
ThemeData
copyWith({
- TextStyle? defaultTextStyle,
- TextStyle? paragraphStyle,
- TextStyle? header0,
- TextStyle? header1,
- TextStyle? header2,
- TextStyle? header3,
- TextStyle? header4,
- TextStyle? header5,
- TextStyle? bulletStyle,
- TextStyle? tableHeader,
- TextStyle? tableCell,
- bool? softWrap,
- TextAlign? textAlign,
- int? maxLines,
- TextOverflow? overflow,
- IconThemeData? iconTheme,
Implementation
ThemeData copyWith({
TextStyle? defaultTextStyle,
TextStyle? paragraphStyle,
TextStyle? header0,
TextStyle? header1,
TextStyle? header2,
TextStyle? header3,
TextStyle? header4,
TextStyle? header5,
TextStyle? bulletStyle,
TextStyle? tableHeader,
TextStyle? tableCell,
bool? softWrap,
TextAlign? textAlign,
int? maxLines,
TextOverflow? overflow,
IconThemeData? iconTheme,
}) =>
ThemeData._(
defaultTextStyle: this.defaultTextStyle.merge(defaultTextStyle),
paragraphStyle: this.paragraphStyle.merge(paragraphStyle),
bulletStyle: this.bulletStyle.merge(bulletStyle),
header0: this.header0.merge(header0),
header1: this.header1.merge(header1),
header2: this.header2.merge(header2),
header3: this.header3.merge(header3),
header4: this.header4.merge(header4),
header5: this.header5.merge(header5),
tableHeader: this.tableHeader.merge(tableHeader),
tableCell: this.tableCell.merge(tableCell),
softWrap: softWrap ?? this.softWrap,
overflow: overflow ?? this.overflow,
textAlign: textAlign ?? this.textAlign,
maxLines: maxLines ?? this.maxLines,
iconTheme: iconTheme ?? this.iconTheme,
);