copyWith method
- PanMomentum? pan,
- AnchoredMomentum? zoom,
- AnchoredMomentum? bearing,
- 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,
);