scrollUntilVisible method

  1. @override
Future<void> scrollUntilVisible(
  1. Finder item, {
  2. Finder? scrollable,
  3. double? dx,
  4. double? dy,
  5. 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,
  );
}