dragUntilVisible method

Future<void> dragUntilVisible(
  1. dynamic target,
  2. dynamic scrollview, {
  3. Offset? moveStep,
})

Implementation

Future<void> dragUntilVisible(dynamic target, dynamic scrollview,
    {Offset? moveStep}) async {
  var finder = targetToFinder(target, skipOffStage: false);
  var scrollFinder = targetToFinder(scrollview);
  await tester.dragUntilVisible(
      finder, scrollFinder, moveStep ?? Offset(0, -100));
  await pumpAndSettle();
}