verticalOffset property

ViewportOffset verticalOffset

Which part of the content inside the viewport should be visible in the vertical axis.

The ViewportOffset.pixels value determines the scroll offset that the viewport uses to select which part of its content to display. As the user scrolls the viewport vertically, this value changes, which changes the content that is displayed.

Typically a ScrollPosition.

Implementation

ViewportOffset get verticalOffset => _verticalOffset;
void verticalOffset=(ViewportOffset value)

Implementation

set verticalOffset(ViewportOffset value) {
  if (_verticalOffset == value) {
    return;
  }
  if (attached) {
    _verticalOffset.removeListener(markNeedsLayout);
  }
  _verticalOffset = value;
  if (attached) {
    _verticalOffset.addListener(markNeedsLayout);
  }
  markNeedsLayout();
}