scrollTo method
Scrolls until target is on screen.
Swipes the largest scrollable on screen, or the one within finds.
Implementation
PlaybookStep scrollTo(Object target, {Object? within}) {
final PlaybookFinder finder = Find.target(target);
final PlaybookFinder? container = within == null
? null
: Find.target(within);
return PlaybookStep(
'Scroll to ${finder.description}',
(PlaybookActor actor) => actor.scrollTo(finder, within: container),
);
}