TapDragEndDetails constructor

TapDragEndDetails(
  1. {Velocity velocity = Velocity.zero,
  2. double? primaryVelocity,
  3. required int consecutiveTapCount,
  4. required Set<LogicalKeyboardKey> keysPressedOnDown}
)

Creates details for a GestureTapDragEndCallback.

The velocity argument must not be null.

The consecutiveTapCount, and keysPressedOnDown arguments must be provided and must not be null.

Implementation

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