copyWith method
- ScreenPoint? velocity,
- MomentumDecay? decay,
A copy of this value with the given members replaced.
Implementation
PanMomentum copyWith({ScreenPoint? velocity, MomentumDecay? decay}) =>
PanMomentum(
velocity: velocity ?? this.velocity,
decay: decay ?? this.decay,
);