scrollToBottom method

void scrollToBottom()

Jumps to the newest message.

Implementation

void scrollToBottom() {
  if (_isDisposed || !hasClients) return;
  final target = reverse ? 0.0 : position.maxScrollExtent;
  if ((position.pixels - target).abs() <= _bottomEpsilon) return;
  jumpTo(target);
}