viewportOffset property

Offset get viewportOffset

The combined viewport scroll offset.

Returns an Offset representing the current scroll position, combining both horizontal and vertical scroll values.

Implementation

Offset get viewportOffset {
  return Offset(horizontal.pixels, vertical.pixels);
}