Method to get a Swipe record for the swipe gesture.
This method returns a Swipe record that contains the direction and speed of the swipe.
Swipe get swipe => Swipe(swipeDirection, swipeSpeed, swipeMagnitude, swipeAngle);