tap method

void tap(
  1. TapTarget target
)

Simulates a full tap (press + release) at the location of target.

target is resolved lazily — typically a Finder.textLocation result.

tester.tap(tester.find.textLocation('Submit'));
// or with raw coordinates:
tester.tapAt(5, 3);

Implementation

void tap(TapTarget target) {
  final coords = target._resolve(this);
  tapAt(coords.x, coords.y);
}