TestGesture class

A class for performing gestures in tests.

The simplest way to create a TestGesture is to call WidgetTester.startGesture.

Properties

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() Future<void>
End the gesture by canceling the pointer (as would happen if the system showed a modal dialog on top of the Flutter application, for instance). [...]
moveBy(Offset offset, { Duration timeStamp: Duration.zero }) Future<void>
Send a move event moving the pointer by the given offset.
moveTo(Offset location, { Duration timeStamp: Duration.zero }) Future<void>
Send a move event moving the pointer to the given location.
up() Future<void>
End the gesture by releasing the pointer. [...]
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

Static Methods

down(Offset downLocation, { int pointer: 1, HitTester hitTester, EventDispatcher dispatcher }) Future<TestGesture>
Create a TestGesture by starting with a pointerDown at the given point. [...]