copyWith method

CameraFitUpdate copyWith({
  1. CameraUpdateMode? mode,
  2. CameraFitOptions? fit,
  3. AnimationOptions? animation,
})

A copy of this value with the given members replaced.

Implementation

CameraFitUpdate copyWith({
  CameraUpdateMode? mode,
  CameraFitOptions? fit,
  AnimationOptions? animation,
}) => CameraFitUpdate(
  mode: mode ?? this.mode,
  fit: fit ?? this.fit,
  animation: animation ?? this.animation,
);