A class for performing gestures in tests.

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

Static Methods

down(Point downLocation, { int pointer: 1, HitTester hitTester, EventDispatcher dispatcher }) Future<TestGesture>

Create a TestGesture by starting with a pointerDown at the given point.

Properties

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() Future<Null>

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) Future<Null>

Send a move event moving the pointer by the given offset.

moveTo(Point location) Future<Null>

Send a move event moving the pointer to the given location.

up() Future<Null>

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