scrollUntilVisible method
Future<void>
scrollUntilVisible(
- Finder item, {
- Finder? scrollable,
- double? dx,
- double? dy,
- Duration? timeout = const Duration(seconds: 30),
override
Repeatedly scrolls a Scrollable by delta until finder is visible. Between each scroll, wait for duration time for settling. If scrollable is null, this will find a Scrollable.
Implementation
@override
Future<void> scrollUntilVisible(
Finder item, {
Finder? scrollable,
double? dx,
double? dy,
Duration? timeout = const Duration(seconds: 30),
}) async {
await nativeDriver.scrollUntilVisible(
item,
dy ?? dx ?? 0,
scrollable: scrollable,
);
}