scrollPosition property

set scrollPosition (ScrollPosition newValue)

Implementation

set scrollPosition(ScrollPosition newValue) {
  if (_scrollPosition == newValue) {
    return;
  }
  final ScrollPosition oldValue = _scrollPosition;
  _scrollPosition = newValue;
  markNeedsLayout();
  if (attached) {
    oldValue.removeListener(markNeedsLayout);
    newValue.addListener(markNeedsLayout);
  }
}