startGesture method Null safety

Future<TestGesture> startGesture(
  1. Offset downLocation,
  2. {int? pointer,
  3. PointerDeviceKind kind = PointerDeviceKind.touch,
  4. int buttons = kPrimaryButton}
)

Creates a gesture with an initial down gesture at a particular point, and returns the TestGesture object which you can use to continue the gesture.

You can use createGesture if your gesture doesn't begin with an initial down gesture.

See also:

Implementation

Future<TestGesture> startGesture(
  Offset downLocation, {
  int? pointer,
  PointerDeviceKind kind = PointerDeviceKind.touch,
  int buttons = kPrimaryButton,
}) async {
  assert(downLocation != null);
  final TestGesture result = await createGesture(
    pointer: pointer,
    kind: kind,
    buttons: buttons,
  );
  await result.down(downLocation);
  return result;
}