scrollable property

set scrollable (ScrollableState? scrollableState)

Implementation

set scrollable(ScrollableState? scrollableState) {
  if (_scrollable == scrollableState) {
    return;
  }
  final ScrollableState? preScroll = _scrollable;
  _scrollable = scrollableState;
  if (attached) {
    preScroll!.position.removeListener(markNeedsLayout);
    scrollableState!.position.addListener(markNeedsLayout);
  }
  markNeedsLayout();
}