copyWith method
ElTextThemeData
copyWith(
{ - TextStyle? textStyle,
- TextStyle? regularStyle,
- TextStyle? secondaryStyle,
- TextStyle? placeholderStyle,
- TextStyle? h1Style,
- TextStyle? h2Style,
- TextStyle? h3Style,
- TextStyle? h4Style,
- TextStyle? h5Style,
- 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),
);
}