longPress static method
Simulates a long press event at the specified position.
Example:
Offset? offset = EaseSimulator.getWidgetOffset(key);
await EaseSimulator.longPress(offset);
Implementation
static Future longPress(Offset offset,
{bool showGestureMarker = true}) async {
tapDown(offset, showGestureMarker: showGestureMarker);
await Future.delayed(
const Duration(milliseconds: 1500)); // Adjust the duration as needed
tapUp(offset, showGestureMarker: showGestureMarker);
}