scrollable property

ScrollableState get scrollable

Implementation

ScrollableState get scrollable => _scrollable;
set scrollable (ScrollableState value)

Implementation

set scrollable(ScrollableState value) {
  //when collapse last section, Sliver list not callback correct offset, so layout again.
  if (_renderSliver.sizeChanged) {
    WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
      if (attached) {
        clearContainerLayoutOffsets();
        markNeedsLayout();
      }
    });
  }
  if (_scrollable == value) {
    return;
  }
  final ScrollableState oldValue = _scrollable;
  _scrollable = value;
  markNeedsLayout();
  if (attached) {
    oldValue.widget.controller?.removeListener(markNeedsLayout);
    if (_sticky) {
      _scrollable.widget.controller?.addListener(markNeedsLayout);
    }
  }
}