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