scrollOffset property
int
get
scrollOffset
The current scroll offset in terminal lines/cells.
Implementation
int get scrollOffset => _scrollOffset;
set
scrollOffset
(int value)
Implementation
set scrollOffset(int value) {
final maxOffset = max(0, _totalExtent - _viewportExtent);
final clamped = value.clamp(0, maxOffset);
if (_scrollOffset != clamped) {
_scrollOffset = clamped;
notifyListeners();
}
}