tap method

Future<void> tap (
  1. Finder finder,
  2. {int pointer,
  3. 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.


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