startScrollingToEnd method

void startScrollingToEnd()

Starts auto-scrolling to the end of the text.

If already auto-scrolling to the end, does nothing.

If auto-scrolling to the start, that auto-scroll is cancelled and replaced by auto-scrolling to the end.

Implementation

void startScrollingToEnd() {
  if (_autoScrollDirection == _AutoScrollDirection.end) {
    // Already scrolling to end. Return.
    return;
  }

  stopScrolling();

  _log.fine('Auto-scrolling to end');
  _autoScrollDirection = _AutoScrollDirection.end;
  _timeOfPreviousAutoScroll = Duration.zero;
  _autoScrollTick(Duration.zero);
  _ticker.start();
}