operator - method

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

Subtract other.

otherを減算します。

Implementation

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