copyWith method

ElTextThemeData copyWith({
  1. TextStyle? textStyle,
  2. TextStyle? regularStyle,
  3. TextStyle? secondaryStyle,
  4. TextStyle? placeholderStyle,
  5. TextStyle? h1Style,
  6. TextStyle? h2Style,
  7. TextStyle? h3Style,
  8. TextStyle? h4Style,
  9. TextStyle? h5Style,
  10. TextStyle? h6Style,
})

Implementation

ElTextThemeData copyWith({
  TextStyle? textStyle,
  TextStyle? regularStyle,
  TextStyle? secondaryStyle,
  TextStyle? placeholderStyle,
  TextStyle? h1Style,
  TextStyle? h2Style,
  TextStyle? h3Style,
  TextStyle? h4Style,
  TextStyle? h5Style,
  TextStyle? h6Style,
}) {
  return ElTextThemeData(
    textStyle: this.textStyle.merge(textStyle),
    regularStyle: this.regularStyle.merge(regularStyle),
    secondaryStyle: this.secondaryStyle.merge(secondaryStyle),
    placeholderStyle: this.placeholderStyle.merge(placeholderStyle),
    h1Style: this.h1Style.merge(h1Style),
    h2Style: this.h2Style.merge(h2Style),
    h3Style: this.h3Style.merge(h3Style),
    h4Style: this.h4Style.merge(h4Style),
    h5Style: this.h5Style.merge(h5Style),
    h6Style: this.h6Style.merge(h6Style),
  );
}