copyWith method
BaseTextStyle
copyWith({
- Color? color,
- double? fontSize,
- FontWeight? fontWeight,
- TextDecoration? decoration,
- double? height,
- TextBaseline? textBaseline,
Implementation
BaseTextStyle copyWith({
Color? color,
double? fontSize,
FontWeight? fontWeight,
TextDecoration? decoration,
double? height,
TextBaseline? textBaseline,
}) {
return BaseTextStyle(
color: color ?? this.color,
fontSize: fontSize ?? this.fontSize,
fontWeight: fontWeight ?? this.fontWeight,
decoration: decoration ?? this.decoration,
height: height ?? this.height,
textBaseline: textBaseline ?? this.textBaseline,
);
}