scrollPane method
Returns a reusable scroll-pane helper for scrollbar rendering/interaction.
Implementation
ViewportScrollPane scrollPane({
required String separator,
required ScrollbarChars chars,
}) {
if (_scrollPane == null ||
_scrollbarSeparator != separator ||
_scrollbarChars != chars) {
_scrollPane = ViewportScrollPane(
viewport: _model,
separator: separator,
chars: chars,
);
_scrollbarSeparator = separator;
_scrollbarChars = chars;
}
_scrollPane!.viewport = _model;
return _scrollPane!;
}