onEnd property

GestureDragEndCallback? onEnd
getter/setter pair

A pointer that was previously in contact with the screen with a primary button and moving is no longer in contact with the screen and was moving at a specific velocity when it stopped contacting the screen.

The velocity is provided in the callback's details argument, which is a DragEndDetails object.

If this gesture recognizer recognizes movement on a single axis (a VerticalDragGestureRecognizer or HorizontalDragGestureRecognizer), then details will reflect movement only on that axis and its DragEndDetails.primaryVelocity will be non-null. If this gesture recognizer recognizes movement in all directions (a PanGestureRecognizer), then details will reflect movement on both axes and its DragEndDetails.primaryVelocity will be null.

See also:

  • allowedButtonsFilter, which decides which button will be allowed.
  • DragEndDetails, which is passed as an argument to this callback.

Implementation

GestureDragEndCallback? onEnd;