binarySearch<E> function

*<Null safety>*

int binarySearch <E>(List<E> sortedList, E value, {int compare(E, E)})

Implementation

int binarySearch<E>(List<E> sortedList, E value,
    {int Function(E, E)? compare}) {
  compare ??= defaultCompare;
  return binarySearchBy<E, E>(sortedList, identity, compare, value);
}