scrollToRight function

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

Scrolls viewport to the right border.

Implementation

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