Swipe constructor

const Swipe(
  1. SwipeDirection direction,
  2. SwipeSpeed speed,
  3. SwipeMagnitude magnitude,
  4. SwipeAngle angle,
)

Creates a new Swipe record.

The direction parameter specifies the direction of the swipe. The speed parameter specifies the speed of the swipe. The magnitude parameter specifies the magnitude of the swipe. The angle parameter specifies the angle of the swipe.

Example:

var swipe = Swipe(SwipeDirection.left, SwipeSpeed.fast,
  SwipeMagnitude.large, SwipeAngle.horizontal);

Implementation

const Swipe(this.direction, this.speed, this.magnitude, this.angle);