setHorizontalOffset method
Sets the horizontal viewport offset.
The model clamps only the left boundary because the renderer owns the available width and therefore decides how much content can be revealed.
Implementation
bool setHorizontalOffset(int offset) {
final next = offset.clamp(0, maxHorizontalOffset);
if (next == _horizontalOffset) return false;
_horizontalOffset = next;
return true;
}