copyWith method

XcfVectorPaint copyWith({
  1. int? style,
  2. bool? antialias,
  3. XcfColor? color,
  4. XcfResourceReference? pattern,
  5. bool clearColor = false,
  6. bool clearPattern = false,
})

Replaces paint fields; explicit flags clear nullable resources.

Implementation

XcfVectorPaint copyWith({int? style, bool? antialias, XcfColor? color, XcfResourceReference? pattern, bool clearColor = false, bool clearPattern = false}) => XcfVectorPaint(
  style: style ?? this.style,
  antialias: antialias ?? this.antialias,
  color: clearColor ? null : color ?? this.color,
  pattern: clearPattern ? null : pattern ?? this.pattern,
);