copyWith method
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,
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,
);
}