TapDragEndDetails constructor

TapDragEndDetails({
  1. Velocity velocity = Velocity.zero,
  2. double? primaryVelocity,
  3. required int consecutiveTapCount,
})

Creates details for a GestureTapDragEndCallback.

Implementation

TapDragEndDetails({
  this.velocity = Velocity.zero,
  this.primaryVelocity,
  required this.consecutiveTapCount,
}) : assert(
       primaryVelocity == null
         || primaryVelocity == velocity.pixelsPerSecond.dx
         || primaryVelocity == velocity.pixelsPerSecond.dy,
     );