copyWith method

PanMomentum copyWith({
  1. ScreenPoint? velocity,
  2. 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,
    );