createGesture method

Future<TestGesture> createGesture ({int pointer, PointerDeviceKind kind: PointerDeviceKind.touch })

Creates gesture and returns the TestGesture object which you can use to continue the gesture using calls on the TestGesture object.

You can use startGesture instead if your gesture begins with a down event.

Implementation

Future<TestGesture> createGesture({int pointer, PointerDeviceKind kind = PointerDeviceKind.touch}) async {
  return TestGesture(
    hitTester: hitTestOnBinding,
    dispatcher: sendEventToBinding,
    kind: kind,
    pointer: pointer ?? _getNextPointer(),
  );
}