copyWith method

VoTextStyle copyWith({
  1. Color? color,
  2. double? size,
  3. double? height,
  4. double? textScale,
  5. TextStyle? textStyle,
  6. TextAlign? textAlign,
  7. int? maxLines,
  8. TextOverflow? overflow,
  9. FontWeight? fontWeight,
  10. Color? linkColor,
  11. FontWeight? linkFontWeight,
})

Implementation

VoTextStyle copyWith({
  Color? color,
  double? size,
  double? height,
  double? textScale,
  TextStyle? textStyle,
  TextAlign? textAlign,
  int? maxLines,
  TextOverflow? overflow,
  FontWeight? fontWeight,
  Color? linkColor,
  FontWeight? linkFontWeight,
}) => VoTextStyle(
  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,
);