tap method

Future<void> tap (Finder finder, { int pointer, int buttons: kPrimaryButton })

Dispatch a pointer down / pointer up sequence 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.

Implementation

Future<void> tap(Finder finder, {int pointer, int buttons = kPrimaryButton}) {
  return tapAt(getCenter(finder), pointer: pointer, buttons: buttons);
}