scrollIntoViewByTooltip method

Future<Response> scrollIntoViewByTooltip(
  1. String tooltip, {
  2. double alignment = 0.0,
})

Implementation

Future<Response> scrollIntoViewByTooltip(String tooltip,
    {double alignment = 0.0}) async {
  VM vm = await vmService.getVM();
  IsolateRef? mainIsolate = vm.isolates!.first;

  return await vmService.callServiceExtension(
    'ext.flutter.driver',
    isolateId: mainIsolate.id!,
    args: {
      'command': 'scrollIntoView',
      'finderType': 'ByTooltip',
      'tooltip': tooltip,
      'alignment': alignment.toString(),
    },
  );
}