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