метод scrollIntoViewIfNeeded
- [bool? centerIfNeeded]
Нестандартная версия scrollIntoView, которая прокручивает текущий элемент в видимую область окна браузера, если он ещё не находится в ней. Если элемент уже находится в видимой области окна браузера, прокрутка не выполняется.
Другие ресурсы
- Element.scrollIntoViewIfNeeded на MDN.
Реализация
void scrollIntoViewIfNeeded([bool? centerIfNeeded]) native;
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-html/Element/scrollIntoViewIfNeeded.html