copyWith method

MorphState copyWith({
  1. MorphPhase? phase,
  2. double? progress,
  3. bool? isDragging,
  4. double? velocity,
})

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,
  );
}