copyWith method

CSS3 copyWith({
  1. Color? backgroundColor,
  2. Color? color,
  3. Map<String, int?>? counterIncrement,
  4. Map<String, int?>? counterReset,
  5. TextDirection? direction,
  6. Display? display,
  7. String? fontFamily,
  8. List<String>? fontFamilyFallback,
  9. List<FontFeature>? fontFeatureSettings,
  10. FontSize? fontSize,
  11. FontStyle? fontStyle,
  12. FontWeight? fontWeight,
  13. Height? height,
  14. LineHeight? lineHeight,
  15. double? letterSpacing,
  16. ListStyleImage? listStyleImage,
  17. ListStyleType? listStyleType,
  18. ListStylePosition? listStylePosition,
  19. EdgeInsets? padding,
  20. Margins? margin,
  21. Marker? marker,
  22. TextAlign? textAlign,
  23. TextDecoration? textDecoration,
  24. Color? textDecorationColor,
  25. TextDecorationStyle? textDecorationStyle,
  26. double? textDecorationThickness,
  27. List<Shadow>? textShadow,
  28. VerticalAlign? verticalAlign,
  29. WhiteSpace? whiteSpace,
  30. Width? width,
  31. double? wordSpacing,
  32. String? before,
  33. String? after,
  34. Border? border,
  35. Alignment? alignment,
  36. Widget? markerContent,
  37. int? maxLines,
  38. TextOverflow? textOverflow,
  39. TextTransform? textTransform,
  40. bool? beforeAfterNull,
})

Implementation

CSS3 copyWith({
  Color? backgroundColor,
  Color? color,
  Map<String, int?>? counterIncrement,
  Map<String, int?>? counterReset,
  TextDirection? direction,
  Display? display,
  String? fontFamily,
  List<String>? fontFamilyFallback,
  List<FontFeature>? fontFeatureSettings,
  FontSize? fontSize,
  FontStyle? fontStyle,
  FontWeight? fontWeight,
  Height? height,
  LineHeight? lineHeight,
  double? letterSpacing,
  ListStyleImage? listStyleImage,
  ListStyleType? listStyleType,
  ListStylePosition? listStylePosition,
  EdgeInsets? padding,
  Margins? margin,
  Marker? marker,
  TextAlign? textAlign,
  TextDecoration? textDecoration,
  Color? textDecorationColor,
  TextDecorationStyle? textDecorationStyle,
  double? textDecorationThickness,
  List<Shadow>? textShadow,
  VerticalAlign? verticalAlign,
  WhiteSpace? whiteSpace,
  Width? width,
  double? wordSpacing,
  String? before,
  String? after,
  Border? border,
  Alignment? alignment,
  Widget? markerContent,
  int? maxLines,
  TextOverflow? textOverflow,
  TextTransform? textTransform,
  bool? beforeAfterNull,
}) {
  return CSS3(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    color: color ?? this.color,
    counterIncrement: counterIncrement ?? this.counterIncrement,
    counterReset: counterReset ?? this.counterReset,
    direction: direction ?? this.direction,
    display: display ?? this.display,
    fontFamily: fontFamily ?? this.fontFamily,
    fontFamilyFallback: fontFamilyFallback ?? this.fontFamilyFallback,
    fontFeatureSettings: fontFeatureSettings ?? this.fontFeatureSettings,
    fontSize: fontSize ?? this.fontSize,
    fontStyle: fontStyle ?? this.fontStyle,
    fontWeight: fontWeight ?? this.fontWeight,
    height: height ?? this.height,
    lineHeight: lineHeight ?? this.lineHeight,
    letterSpacing: letterSpacing ?? this.letterSpacing,
    listStyleImage: listStyleImage ?? this.listStyleImage,
    listStyleType: listStyleType ?? this.listStyleType,
    listStylePosition: listStylePosition ?? this.listStylePosition,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    marker: marker ?? this.marker,
    textAlign: textAlign ?? this.textAlign,
    textDecoration: textDecoration ?? this.textDecoration,
    textDecorationColor: textDecorationColor ?? this.textDecorationColor,
    textDecorationStyle: textDecorationStyle ?? this.textDecorationStyle,
    textDecorationThickness: textDecorationThickness ?? this.textDecorationThickness,
    textShadow: textShadow ?? this.textShadow,
    verticalAlign: verticalAlign ?? this.verticalAlign,
    whiteSpace: whiteSpace ?? this.whiteSpace,
    width: width ?? this.width,
    wordSpacing: wordSpacing ?? this.wordSpacing,
    before: beforeAfterNull == true ? null : before ?? this.before,
    after: beforeAfterNull == true ? null : after ?? this.after,
    border: border ?? this.border,
    alignment: alignment ?? this.alignment,
    markerContent: markerContent ?? this.markerContent,
    maxLines: maxLines ?? this.maxLines,
    textOverflow: textOverflow ?? this.textOverflow,
    textTransform: textTransform ?? this.textTransform,
  );
}