combine method

Size combine(
  1. Size other
)

Returns the size that is the combination of this size and the given other size.

Implementation

Size combine(Size other) {
  return Size(width + other.width, height + other.height);
}