lowerBound method
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);
}