enforce method
- LayoutConstraints other
These constraints, pulled inside other.
Every bound is clamped into other's range, so other always wins - a
tight other leaves nothing of these behind.
Implementation
LayoutConstraints enforce(LayoutConstraints other) => .new(
min: min.clampedBetween(other.min, other.max),
max: max.clampedBetween(other.min, other.max),
);