offset property

double get offset

The current scroll offset in pixels based on direction.

Implementation

double get offset {
  if (_attachedElement != null) {
    _offset = (direction == ScrollDirection.vertical
        ? _attachedElement!.scrollTop
        : _attachedElement!.scrollLeft);
  }
  return _offset;
}