swipeSpeed property

SwipeSpeed get swipeSpeed

Method to get the swipe speed.

This method returns the speed of the swipe based on the velocity and the thresholds defined in swipeThresholds.

Implementation

SwipeSpeed get swipeSpeed {
  final double speed = velocity.pixelsPerSecond.distance;
  return GestureUtils._getSwipeSpeed(speed);
}