lowerBound method

int lowerBound(
  1. E value, {
  2. int compare(
    1. E a,
    2. E b
    )?,
})

Returns the first position in this list that does not compare less than value.

If this list isn't sorted according to the compare function, the result is unpredictable.

If compare is omitted, this defaults to calling Comparable.compareTo on the objects. If any object is not Comparable, this throws a CastError.

Returns length if all the items in this list compare less than value.

Implementation

int lowerBound(E value, {int Function(E a, E b)? compare}) {
  return _lowerBound(this, value, compare: compare);
}