contains method

  1. @override
  2. @useResult
bool contains(
  1. T value
)
override

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) => this.value.compareTo(value) <= (closed ? 0 : -1);