scrollToBottom function

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

Scrolls viewport to the bottom.

Implementation

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