Bound<T> constructor

const Bound<T>(
  1. {T? value,
  2. BoundType type = BoundType.inclusive}
)

Implementation

const Bound({this.value, this.type = BoundType.inclusive})
    : assert(value != null &&
              (type == BoundType.inclusive || type == BoundType.exclusive) ||
          value == null && type == BoundType.unbounded);