TapDragEndDetails constructor
- {Velocity velocity = Velocity.zero,
- double? primaryVelocity,
- required int consecutiveTapCount,
- 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,
);