copyWith method

DrawConfig copyWith({
  1. Type? contentType,
  2. BlendMode? blendMode,
  3. Color? color,
  4. ColorFilter? colorFilter,
  5. FilterQuality? filterQuality,
  6. ImageFilter? imageFilter,
  7. bool? invertColors,
  8. bool? isAntiAlias,
  9. MaskFilter? maskFilter,
  10. Shader? shader,
  11. StrokeCap? strokeCap,
  12. StrokeJoin? strokeJoin,
  13. double? strokeWidth,
  14. PaintingStyle? style,
  15. int? angle,
  16. int? fingerCount,
  17. 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,
  );
}