scrollPane method

ViewportScrollPane scrollPane({
  1. required String separator,
  2. required ScrollbarChars chars,
})

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!;
}