API Reference 0.7.1rikulo_gestureSwipeGestureState

SwipeGestureState class

The state of a SwipeGesture.

class SwipeGestureState extends GestureState {

 SwipeGestureState._(this.gesture, DragGestureState ds) :
 eventTarget = ds.eventTarget, startTime = ds.startTime, time = ds.time,
 startPosition = ds.startPosition, position = ds.position,
 transition = ds.transition, velocity = ds.velocity;

 @override  
 final EventTarget eventTarget;
 @override
 final int time;

 /** Retrieve the associated [SwipeGesture].
  */
 final SwipeGesture gesture;
 
 /** The timestamp when the swipe starts.
  */
 final int startTime;
 
 /** The touched/cursor position at the start of swipe.
  */
 final Point startPosition;
 
 /** The touched/cursor position at the end of swipe.
  */
 final Point position;
 
 /** The displacement of the touched/cursor position of the swipe.
  */
 final Point transition;
 
 /** The current estimated velocity of movement.
  */
 final Point velocity;
}

Extends

GestureState > SwipeGestureState

Properties

var data #

inherited from GestureState

Custom data. It is useful if you'd like to store something that will be cleaned up automatically when the gesture is finished.

var data

final EventTarget eventTarget #

The element which receives the event.

docs inherited from GestureState
final EventTarget eventTarget

final SwipeGesture gesture #

Retrieve the associated SwipeGesture.

final SwipeGesture gesture

final Point position #

The touched/cursor position at the end of swipe.

final Point position

final Point startPosition #

The touched/cursor position at the start of swipe.

final Point startPosition

final int startTime #

The timestamp when the swipe starts.

final int startTime

final int time #

The latest timestamp of gesture.

docs inherited from GestureState
final int time

final Point transition #

The displacement of the touched/cursor position of the swipe.

final Point transition

final Point velocity #

The current estimated velocity of movement.

final Point velocity