onNewLog method

void onNewLog()

Scrolls to the bottom when a new log appears (if LogsOptionsViewModel.autoscroll is true).

Implementation

void onNewLog() {
  if (options.paused) return;
  notifyListeners();
  if (!scrollController.hasClients) return;
  scrollController.jumpTo(options.autoscroll ? 0 : scrollController.offset + 67);
}