clamp method
Clamps the extent to the given bounds.
Implementation
BrushExtent clamp(double minBound, double maxBound) {
return BrushExtent(
start.clamp(minBound, maxBound),
end.clamp(minBound, maxBound),
);
}
Clamps the extent to the given bounds.
BrushExtent clamp(double minBound, double maxBound) {
return BrushExtent(
start.clamp(minBound, maxBound),
end.clamp(minBound, maxBound),
);
}