copyWith method

CameraUpdate copyWith({
  1. CameraUpdateMode? mode,
  2. CameraOptions? camera,
  3. AnimationOptions? animation,
  4. GesturePhase? gesturePhase,
})

A copy of this value with the given members replaced.

Implementation

CameraUpdate copyWith({
  CameraUpdateMode? mode,
  CameraOptions? camera,
  AnimationOptions? animation,
  GesturePhase? gesturePhase,
}) => CameraUpdate(
  mode: mode ?? this.mode,
  camera: camera ?? this.camera,
  animation: animation ?? this.animation,
  gesturePhase: gesturePhase ?? this.gesturePhase,
);