scrollToBottom function

void scrollToBottom({
  1. bool smooth = true,
  2. int? delayMs,
  3. Object? scrollable,
})

Scrolls viewport to the bottom.

Implementation

void scrollToBottom({bool smooth = true, int? delayMs, Object? scrollable}) =>
    scrollTo(window.scrollX, document.body!.scrollHeight,
        smooth: smooth, delayMs: delayMs, scrollable: scrollable);