pressDownOnDownstreamMobileHandle method
Implementation
Future<TestGesture> pressDownOnDownstreamMobileHandle() async {
final handleElement = find
.byWidgetPredicate((widget) =>
(widget is AndroidSelectionHandle && widget.handleType == HandleType.downstream) ||
(widget is IOSSelectionHandle && widget.handleType == HandleType.downstream))
.evaluate()
.firstOrNull;
assert(handleElement != null, "Tried to press down on downstream handle but no handle was found.");
final renderHandle = handleElement!.renderObject as RenderBox;
final handleCenter = renderHandle.localToGlobal(renderHandle.size.center(Offset.zero));
final gesture = await startGesture(handleCenter);
return gesture;
}