copyWith method

ThemeData copyWith({
  1. TextStyle? defaultTextStyle,
  2. TextStyle? paragraphStyle,
  3. TextStyle? header0,
  4. TextStyle? header1,
  5. TextStyle? header2,
  6. TextStyle? header3,
  7. TextStyle? header4,
  8. TextStyle? header5,
  9. TextStyle? bulletStyle,
  10. TextStyle? tableHeader,
  11. TextStyle? tableCell,
  12. bool? softWrap,
  13. TextAlign? textAlign,
  14. int? maxLines,
  15. TextOverflow? overflow,
  16. 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,
    );