createGesture method Null safety
- {int? pointer,
- PointerDeviceKind kind = PointerDeviceKind.touch,
- int buttons = kPrimaryButton}
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,
int buttons = kPrimaryButton,
}) async {
return TestGesture(
dispatcher: sendEventToBinding,
kind: kind,
pointer: pointer ?? _getNextPointer(),
buttons: buttons,
);
}