Returns a new size that is smaller than the given size by the amount of inset in the horizontal and vertical directions.
If the argument is smaller than collapsedSize, then the resulting size will have negative dimensions.
See also:
- deflateRect, to deflate a Rect rather than a Size.
- inflateSize, to inflate a Size rather than deflating it.
Source
Size deflateSize(Size size) { return new Size(size.width - horizontal, size.height - vertical); }