updateHorizontalOffset method

void updateHorizontalOffset(
  1. ViewportOffset offset
)

Implementation

void updateHorizontalOffset(ViewportOffset offset) {
  if (horizontal != offset) {
    horizontal.removeListener(_onScrollOffsetChanged);
    horizontal = offset;
    if (attached) {
      horizontal.addListener(_onScrollOffsetChanged);
    }
  }
}