clampValues method
Returns this Radius, with values clamped to the given min and max values in each dimension
The minimumX
and minimumY
values default to -double.infinity
, and
the maximumX
and maximumY
values default to double.infinity
.
Implementation
Radius clampValues({
double? minimumX,
double? minimumY,
double? maximumX,
double? maximumY,
}) {
return Radius.elliptical(
clampDouble(x, minimumX ?? -double.infinity, maximumX ?? double.infinity),
clampDouble(y, minimumY ?? -double.infinity, maximumY ?? double.infinity),
);
}