A class for generating coherent artificial pointer events.

You can use this to manually simulate individual events, but the simplest way to generate coherent gestures is to use TestGesture.

Constructors

TestPointer([int pointer = 1 ])

Creates a TestPointer. By default, the pointer identifier used is 1, however this can be overridden by providing an argument to the constructor.

Properties

isDown → bool

Whether the pointer simulated by this object is currently down.

read-only
location → Point

The position of the last event sent by this object.

read-only
pointer → int

The pointer identifier used for events generated by this object.

read-only
hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

cancel({Duration timeStamp: Duration.ZERO }) → PointerCancelEvent

Create a PointerCancelEvent.

down(Point newLocation, { Duration timeStamp: Duration.ZERO }) → PointerDownEvent

Create a PointerDownEvent at the given location.

move(Point newLocation, { Duration timeStamp: Duration.ZERO }) → PointerMoveEvent

Create a PointerMoveEvent to the given location.

up({Duration timeStamp: Duration.ZERO }) → PointerUpEvent

Create a PointerUpEvent.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited