subtract method
Returns a box with its width or height decreased by width
or height
(clamped to zero).
Implementation
Box subtract({
double? width,
double? height,
}) =>
copyWith(
width: width == null ? this.width : max(0, ((this.width ?? 0.0) - width)),
height: height == null ? this.height : max(0, ((this.height ?? 0.0) - height)),
);