deflateSize method

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:

Implementation

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