Swipe constructor
const
Swipe(
- SwipeDirection direction,
- SwipeSpeed speed,
- SwipeMagnitude magnitude,
- 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);