operator + method

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

Add other.

otherを加算します。

Implementation

NumRange operator +(NumRange? other) {
  if (other == null) {
    return this;
  }
  return NumRange(
    min + other.min,
    max + other.max,
  );
}