copyWith method

GestureMomentum copyWith({
  1. PanMomentum? pan,
  2. AnchoredMomentum? zoom,
  3. AnchoredMomentum? bearing,
  4. AnchoredMomentum? pitch,
})

A copy of this value with the given members replaced.

Implementation

GestureMomentum copyWith({
  PanMomentum? pan,
  AnchoredMomentum? zoom,
  AnchoredMomentum? bearing,
  AnchoredMomentum? pitch,
}) => GestureMomentum(
  pan: pan ?? this.pan,
  zoom: zoom ?? this.zoom,
  bearing: bearing ?? this.bearing,
  pitch: pitch ?? this.pitch,
);