copyWith method
copyWith API.
Implementation
ThemeData copyWith({
TextStyle? defaultTextStyle,
TextStyle? paragraphStyle,
TextStyle? tableHeader,
TextStyle? tableCell,
TextStyle? bulletStyle,
}) {
return ThemeData(
defaultTextStyle: defaultTextStyle ?? this.defaultTextStyle,
fontName: fontName,
paragraphStyle: paragraphStyle ?? this.paragraphStyle,
header0: header0,
header1: header1,
header2: header2,
header3: header3,
header4: header4,
header5: header5,
tableHeader: tableHeader ?? this.tableHeader,
tableCell: tableCell ?? this.tableCell,
bulletStyle: bulletStyle ?? this.bulletStyle,
);
}