onSwipe property

(void Function(SwipeDirection direction, Offset offset)?) onSwipe
final

Called when the user has swiped in a particular direction.

  • The direction parameter is the SwipeDirection of the swipe.
  • The offset parameter is the offset of the swipe in the direction.

Implementation

final void Function(SwipeDirection direction, Offset offset)? onSwipe;