TestPointer class

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 Offset
The position of the last event sent by this object. [...]
read-only
pointer int
The pointer identifier used for events generated by this object. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

cancel({Duration timeStamp: Duration.zero }) PointerCancelEvent
Create a PointerCancelEvent. [...]
down(Offset newLocation, { Duration timeStamp: Duration.zero }) PointerDownEvent
Create a PointerDownEvent at the given location. [...]
move(Offset 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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited