copyWith method
Copies the current recipe with some new values.
Implementation
DoughRecipeData copyWith({
double? viscosity,
double? adhesion,
double? expansion,
bool? usePerspectiveWarp,
double? perspectiveWarpDepth,
Duration? entryDuration,
Curve? entryCurve,
Duration? exitDuration,
Curve? exitCurve,
DraggableDoughPrefs? draggablePrefs,
}) {
return DoughRecipeData.raw(
viscosity: viscosity ?? this.viscosity,
adhesion: adhesion ?? this.adhesion,
expansion: expansion ?? this.expansion,
usePerspectiveWarp: usePerspectiveWarp ?? this.usePerspectiveWarp,
perspectiveWarpDepth: perspectiveWarpDepth ?? this.perspectiveWarpDepth,
entryDuration: entryDuration ?? this.entryDuration,
entryCurve: entryCurve ?? this.entryCurve,
exitDuration: exitDuration ?? this.exitDuration,
exitCurve: exitCurve ?? this.exitCurve,
draggablePrefs: draggablePrefs ?? this.draggablePrefs,
);
}