scrollable property

ScrollableState get scrollable

Implementation

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

Implementation

set scrollable(ScrollableState newScrollable) {
  final ScrollableState oldScrollable = _scrollable;
  _scrollable = newScrollable;

  markNeedsPaint();

  if (attached) {
    oldScrollable.position.removeListener(markNeedsPaint);
    newScrollable.position.addListener(markNeedsPaint);
  }
}