copyWith method

ThemeData copyWith({
  1. TextStyle? defaultTextStyle,
  2. TextStyle? paragraphStyle,
  3. TextStyle? tableHeader,
  4. TextStyle? tableCell,
  5. TextStyle? bulletStyle,
})

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,
  );
}