copyWith method

CameraDelta copyWith({
  1. ScreenPoint? offset,
  2. double? scale,
  3. double? bearing,
  4. double? pitch,
  5. ScreenPoint? anchor,
  6. GestureMomentum? momentum,
  7. AnimationOptions? animation,
  8. GesturePhase? gesturePhase,
})

A copy of this value with the given members replaced.

Implementation

CameraDelta copyWith({
  ScreenPoint? offset,
  double? scale,
  double? bearing,
  double? pitch,
  ScreenPoint? anchor,
  GestureMomentum? momentum,
  AnimationOptions? animation,
  GesturePhase? gesturePhase,
}) => CameraDelta(
  offset: offset ?? this.offset,
  scale: scale ?? this.scale,
  bearing: bearing ?? this.bearing,
  pitch: pitch ?? this.pitch,
  anchor: anchor ?? this.anchor,
  momentum: momentum ?? this.momentum,
  animation: animation ?? this.animation,
  gesturePhase: gesturePhase ?? this.gesturePhase,
);