invert method

Bound<T> invert()

Implementation

Bound<T> invert() {
  if (isExclusive) {
    return Bound(value: value, type: BoundType.inclusive);
  } else if (isInclusive) {
    return Bound(value: value, type: BoundType.exclusive);
  }
  return this;
}