setUpOverflowScroller method

void setUpOverflowScroller(
  1. Size scrollableSize,
  2. Size viewportSize
)

Implementation

void setUpOverflowScroller(Size scrollableSize, Size viewportSize) {
  // Recycler layout not need repaintBoundary and scroll/pointer listeners,
  // ignoring overflowX or overflowY sets, which handle it self.
  if (this is RenderSliverListLayout) {
    return;
  }

  _scrollableSize = scrollableSize;
  _viewportSize = viewportSize;
  if (_scrollOffsetX != null) {
    _setUpScrollX();
  }

  if (_scrollOffsetY != null) {
    _setUpScrollY();
  }
}