copyWith method
Creates a copy of this configuration with the given fields replaced.
Implementation
DrawConfig copyWith({
double? maxRandomnessOffset,
double? roughness,
double? bowing,
double? curveFitting,
double? curveTightness,
double? curveStepCount,
double? fillWeight,
int? seed,
bool? combineNestedSvgPaths,
Randomizer? randomizer,
}) {
final effectiveSeed = seed ?? this.seed;
return DrawConfig._(
maxRandomnessOffset: maxRandomnessOffset ?? this.maxRandomnessOffset,
roughness: roughness ?? this.roughness,
bowing: bowing ?? this.bowing,
curveFitting: curveFitting ?? this.curveFitting,
curveTightness: curveTightness ?? this.curveTightness,
curveStepCount: curveStepCount ?? this.curveStepCount,
seed: effectiveSeed,
randomizer: randomizer ?? Randomizer(seed: effectiveSeed),
);
}