deflateSize method

Size deflateSize(
  1. 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);
}