copyWith method
FxTextStyle
copyWith({
- Color? color,
- double? size,
- double? height,
- double? textScale,
- TextStyle? textStyle,
- TextAlign? textAlign,
- int? maxLines,
- TextOverflow? overflow,
- FontWeight? fontWeight,
- Color? linkColor,
- FontWeight? linkFontWeight,
Implementation
FxTextStyle copyWith({
Color? color,
double? size,
double? height,
double? textScale,
TextStyle? textStyle,
TextAlign? textAlign,
int? maxLines,
TextOverflow? overflow,
FontWeight? fontWeight,
Color? linkColor,
FontWeight? linkFontWeight,
}) =>
FxTextStyle(
color: color ?? this.color,
size: size ?? this.size,
height: height ?? this.height,
textScale: textScale ?? this.textScale,
textStyle: textStyle ?? this.textStyle,
textAlign: textAlign ?? this.textAlign,
maxLines: maxLines ?? this.maxLines,
overflow: overflow ?? this.overflow,
fontWeight: fontWeight ?? this.fontWeight,
linkColor: linkColor ?? this.linkColor,
linkFontWeight: linkFontWeight ?? this.linkFontWeight,
);