contains method
Returns true
if this contains value
.
final min = Min.open(0);
min.contains(1); // true
min.contains(-1); // false
Implementation
@override
@useResult bool contains(T value) => min.value.compareTo(value) <= (min.open ? -1 : 0)
&& max.value.compareTo(value) >= (max.open ? 1 : 0);