subtract method

Size subtract(
  1. Size other
)

Returns the size that is the difference between this size and the given other size.

Implementation

Size subtract(Size other) {
  return Size(width - other.width, height - other.height);
}