onSwipe property
Called when the user has swiped in a particular direction.
- The
directionparameter is the SwipeDirection of the swipe. - The
offsetparameter is the offset of the swipe in thedirection.
Implementation
final void Function(SwipeDirection direction, Offset offset)? onSwipe;