copyWith method
Implementation
MorphState copyWith({
MorphPhase? phase,
double? progress,
bool? isDragging,
double? velocity,
}) {
return MorphState(
phase: phase ?? this.phase,
progress: progress ?? this.progress,
isDragging: isDragging ?? this.isDragging,
velocity: velocity ?? this.velocity,
);
}