API Reference 0.7.1rikulo_gestureHoldGestureState

HoldGestureState class

The state of HoldGesture.

class HoldGestureState extends GestureState {
 final int startTime;
 Timer _timer;
 int _time;
 
 HoldGestureState._(this.gesture, this.eventTarget, int time, this.position) : 
 _time = time, this.startTime = time;

 @override
 final EventTarget eventTarget;
 @override
 int get time => _time;

 /** The associated [HoldGesture]. */
 final HoldGesture gesture;
 
 /** The touch point's offset relative to the whole document.
  */
 final Point position;
}

Extends

GestureState > HoldGestureState

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 HoldGesture gesture #

The associated HoldGesture.

final HoldGesture gesture

final Point position #

The touch point's offset relative to the whole document.

final Point position

final int startTime #

final int startTime

final int time #

The latest timestamp of gesture.

docs inherited from GestureState
@override
int get time => _time;