clamp method Null safety
- EdgeInsetsGeometry min,
- EdgeInsetsGeometry max
override
Returns a new EdgeInsetsGeometry object with all values greater than
or equal to min
, and less than or equal to max
.
Implementation
@override
EdgeInsetsGeometry clamp(EdgeInsetsGeometry min, EdgeInsetsGeometry max) {
return EdgeInsets.fromLTRB(
clampDouble(_left, min._left, max._left),
clampDouble(_top, min._top, max._top),
clampDouble(_right, min._right, max._right),
clampDouble(_bottom, min._bottom, max._bottom),
);
}