scrollIntoView method

  1. @override
Future<void> scrollIntoView()
override

Scrolls this element into view.

Implementation

@override
Future<void> scrollIntoView() async {
  await syncFn(() => _retryWhenStale(() {
        final element = _single;

        return _microtask(() {
          element.scrollIntoView();
          element.dispatchEvent(Event('scroll'));
        });
      }));
}