setYOffset method
Sets the Y offset (clamped to valid range).
Implementation
ViewportModel setYOffset(int n) {
return copyWith(yOffset: n.clamp(0, _maxYOffset));
}
Sets the Y offset (clamped to valid range).
ViewportModel setYOffset(int n) {
return copyWith(yOffset: n.clamp(0, _maxYOffset));
}