scrollUntilVisible
Scrolls until an object matching target is visible, within maxScrolls attempts.
Scrolls container when given; otherwise the largest scrollable object on screen. Checks before the first scroll and after the last one, and makes no scrolls for a nonpositive budget. A missing explicit container ends the search. A scroll's event result does not end the search; transiently stale containers are looked up again on the next attempt. Gestures stay 20% inside each container edge to avoid system bars and app chrome.
Return
The object, or null when it is not visible after the budget is used.
Parameters
Selects the object to reveal.
Selects the object to scroll, or null to pick one.
The direction to scroll the content, such as Direction.DOWN to reveal content below.
The scroll budget.