copyWith method
DrawConfig
copyWith({
- Type? contentType,
- BlendMode? blendMode,
- Color? color,
- ColorFilter? colorFilter,
- FilterQuality? filterQuality,
- ImageFilter? imageFilter,
- bool? invertColors,
- bool? isAntiAlias,
- MaskFilter? maskFilter,
- Shader? shader,
- StrokeCap? strokeCap,
- StrokeJoin? strokeJoin,
- double? strokeWidth,
- PaintingStyle? style,
- int? angle,
- int? fingerCount,
- Size? size,
Implementation
DrawConfig copyWith({
Type? contentType,
BlendMode? blendMode,
Color? color,
ColorFilter? colorFilter,
FilterQuality? filterQuality,
ui.ImageFilter? imageFilter,
bool? invertColors,
bool? isAntiAlias,
MaskFilter? maskFilter,
Shader? shader,
StrokeCap? strokeCap,
StrokeJoin? strokeJoin,
double? strokeWidth,
PaintingStyle? style,
int? angle,
int? fingerCount,
Size? size,
}) {
return DrawConfig(
contentType: contentType ?? this.contentType,
angle: angle ?? this.angle,
blendMode: blendMode ?? this.blendMode,
color: color ?? this.color,
colorFilter: colorFilter ?? this.colorFilter,
filterQuality: filterQuality ?? this.filterQuality,
imageFilter: imageFilter ?? this.imageFilter,
invertColors: invertColors ?? this.invertColors,
isAntiAlias: isAntiAlias ?? this.isAntiAlias,
maskFilter: maskFilter ?? this.maskFilter,
shader: shader ?? this.shader,
strokeCap: strokeCap ?? this.strokeCap,
strokeJoin: strokeJoin ?? this.strokeJoin,
strokeWidth: strokeWidth ?? this.strokeWidth,
style: style ?? this.style,
fingerCount: fingerCount ?? this.fingerCount,
size: size ?? this.size,
);
}