press method

Future<TestGesture> press (Finder finder, { int pointer, int buttons: kPrimaryButton })

Dispatch a pointer down at the center of the given widget, assuming it is exposed.

If the center of the widget is not exposed, this might send events to another object.


Future<TestGesture> press(Finder finder, {int pointer, int buttons = kPrimaryButton}) {
  return TestAsyncUtils.guard<TestGesture>(() {
    return startGesture(getCenter(finder), pointer: pointer, buttons: buttons);