scrollbarOrientation property

ScrollbarOrientation? get scrollbarOrientation

Dictates the orientation of the scrollbar.

ScrollbarOrientation.top places the scrollbar on top of the screen. ScrollbarOrientation.bottom places the scrollbar on the bottom of the screen. ScrollbarOrientation.left places the scrollbar on the left of the screen. ScrollbarOrientation.right places the scrollbar on the right of the screen.

ScrollbarOrientation.top and ScrollbarOrientation.bottom can only be used with a vertical scroll. ScrollbarOrientation.left and ScrollbarOrientation.right can only be used with a horizontal scroll.

For a vertical scroll the orientation defaults to ScrollbarOrientation.right for TextDirection.ltr and ScrollbarOrientation.left for TextDirection.rtl. For a horizontal scroll the orientation defaults to ScrollbarOrientation.bottom.

Implementation

ScrollbarOrientation? get scrollbarOrientation => _scrollbarOrientation;
set scrollbarOrientation (ScrollbarOrientation? value)

Implementation

set scrollbarOrientation(ScrollbarOrientation? value) {
  if (scrollbarOrientation == value) {
    return;
  }

  _scrollbarOrientation = value;
  notifyListeners();
}