onSwipe property
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 thedirection
.
Implementation
final void Function(SwipeDirection direction, Offset offset)? onSwipe;