copyWith method

TextStyle copyWith({
  1. bool? inherit,
  2. Color? color,
  3. Color? backgroundColor,
  4. double? fontSize,
  5. FontWeight? fontWeight,
  6. FontStyle? fontStyle,
  7. String? fontFamily,
  8. List<String>? fontFamilyFallback,
  9. double? letterSpacing,
  10. double? wordSpacing,
  11. double? height,
  12. TextDecoration? decoration,
  13. Color? decorationColor,
  14. TextOverflow? overflow,
})

Implementation

TextStyle copyWith({
  bool? inherit,
  Color? color,
  Color? backgroundColor,
  double? fontSize,
  FontWeight? fontWeight,
  FontStyle? fontStyle,
  String? fontFamily,
  List<String>? fontFamilyFallback,
  double? letterSpacing,
  double? wordSpacing,
  double? height,
  TextDecoration? decoration,
  Color? decorationColor,
  TextOverflow? overflow,
}) => TextStyle(
  inherit: inherit ?? this.inherit,
  color: color ?? this.color,
  backgroundColor: backgroundColor ?? this.backgroundColor,
  fontSize: fontSize ?? this.fontSize,
  fontWeight: fontWeight ?? this.fontWeight,
  fontStyle: fontStyle ?? this.fontStyle,
  fontFamily: fontFamily ?? this.fontFamily,
  fontFamilyFallback: fontFamilyFallback ?? this.fontFamilyFallback,
  letterSpacing: letterSpacing ?? this.letterSpacing,
  wordSpacing: wordSpacing ?? this.wordSpacing,
  height: height ?? this.height,
  decoration: decoration ?? this.decoration,
  decorationColor: decorationColor ?? this.decorationColor,
  overflow: overflow ?? this.overflow,
);