scrollable property

ScrollableState scrollable

Implementation

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

Implementation

set scrollable(ScrollableState value) {
  // print("$TAG  update scrollable: ${_renderSliver.sizeChanged}");

  //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);
    }
  }
}