clamp method
Constrains this size unit within the specified min and max bounds.
Implementation
SizeUnit clamp({
SizeUnit min = const _FixedSize(0),
SizeUnit max = const _FixedSize(double.infinity),
}) {
return _ConstrainedSize(
size: this,
min: min,
max: max,
);
}