copyWith method
复制并修改
Implementation
TextStyleConfig copyWith({
double? fontSize,
FontWeight? fontWeight,
Color? color,
FontStyle? fontStyle,
double? letterSpacing,
double? height,
}) {
return TextStyleConfig(
fontSize: fontSize ?? this.fontSize,
fontWeight: fontWeight ?? this.fontWeight,
color: color ?? this.color,
fontStyle: fontStyle ?? this.fontStyle,
letterSpacing: letterSpacing ?? this.letterSpacing,
height: height ?? this.height,
);
}