copyWith method

SvgBrush copyWith({
  1. double? opacity,
  2. SvgColor? fill,
  3. bool? fillEvenOdd,
  4. double? fillOpacity,
  5. SvgColor? stroke,
  6. double? strokeOpacity,
  7. SvgNumeric? strokeWidth,
  8. List<double>? strokeDashArray,
  9. double? strokeDashOffset,
  10. PdfLineCap? strokeLineCap,
  11. PdfLineJoin? strokeLineJoin,
  12. double? strokeMiterLimit,
  13. SvgNumeric? fontSize,
  14. String? fontFamily,
  15. String? fontStyle,
  16. String? fontWeight,
  17. SvgTextAnchor? textAnchor,
  18. PdfBlendMode? blendMode,
  19. SvgMaskPath? mask,
})

Implementation

SvgBrush copyWith({
  double? opacity,
  SvgColor? fill,
  bool? fillEvenOdd,
  double? fillOpacity,
  SvgColor? stroke,
  double? strokeOpacity,
  SvgNumeric? strokeWidth,
  List<double>? strokeDashArray,
  double? strokeDashOffset,
  PdfLineCap? strokeLineCap,
  PdfLineJoin? strokeLineJoin,
  double? strokeMiterLimit,
  SvgNumeric? fontSize,
  String? fontFamily,
  String? fontStyle,
  String? fontWeight,
  SvgTextAnchor? textAnchor,
  PdfBlendMode? blendMode,
  SvgMaskPath? mask,
}) {
  return SvgBrush(
    opacity: opacity ?? this.opacity,
    fill: fill ?? this.fill,
    fillEvenOdd: fillEvenOdd ?? this.fillEvenOdd,
    fillOpacity: fillOpacity ?? this.fillOpacity,
    stroke: stroke ?? this.stroke,
    strokeOpacity: strokeOpacity ?? this.strokeOpacity,
    strokeWidth: strokeWidth ?? this.strokeWidth,
    strokeDashArray: strokeDashArray ?? this.strokeDashArray,
    strokeDashOffset: strokeDashOffset ?? this.strokeDashOffset,
    strokeLineCap: strokeLineCap ?? this.strokeLineCap,
    strokeLineJoin: strokeLineJoin ?? this.strokeLineJoin,
    strokeMiterLimit: strokeMiterLimit ?? this.strokeMiterLimit,
    fontSize: fontSize ?? this.fontSize,
    fontFamily: fontFamily ?? this.fontFamily,
    fontStyle: fontStyle ?? this.fontStyle,
    fontWeight: fontWeight ?? this.fontWeight,
    textAnchor: textAnchor ?? this.textAnchor,
    blendMode: blendMode ?? this.blendMode,
    mask: mask ?? this.mask,
  );
}