operator + method

RectRange<num> operator +(
  1. RectRange<num>? other
)

Add other.

otherを加算します。

Implementation

RectRange operator +(RectRange? other) {
  if (other == null) {
    return this;
  }
  return RectRange(
    minX: minX + other.minX,
    maxX: maxX + other.maxX,
    minY: minY + other.minY,
    maxY: maxY + other.maxY,
  );
}