setScrollOffsetFromBottom method

void setScrollOffsetFromBottom(
  1. int offsetFromBottom
)

Implementation

void setScrollOffsetFromBottom(int offsetFromBottom) {
  if (height < _terminal.viewHeight) return;
  final maxOffsetFromBottom = height - _terminal.viewHeight;
  _scrollOffsetFromBottom = offsetFromBottom.clamp(0, maxOffsetFromBottom);
}