tapDown static method

Future tapDown(
  1. Offset offset, {
  2. bool showGestureMarker = true,
})

Simulates a tap down event at the specified position.

Example:

Offset? offset = EaseSimulator.getWidgetOffset(key);
await EaseSimulator.tapDown(offset);

Implementation

static Future tapDown(Offset offset, {bool showGestureMarker = true}) async {
  GestureBinding.instance.handlePointerEvent(PointerDownEvent(
    position: offset,
  ));
  if (showGestureMarker) {
    showGestureIndicator(position: offset);
  }
}