scroll property

ViewportOffset? get scroll

The scroll of the document the layer stands in, or null.

Implementation

ViewportOffset? get scroll => _scroll;
set scroll (ViewportOffset? value)

Implementation

set scroll(ViewportOffset? value) {
  if (identical(value, _scroll)) return;
  if (attached) _scroll?.removeListener(_scrolled);
  _scroll = value;
  if (attached) _scroll?.addListener(_scrolled);
  _scrolled();
}