Size deflateSize(Size size)

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:

Source

Size deflateSize(Size size) {
  return new Size(size.width - horizontal, size.height - vertical);
}