how can I use this binary search algorithm in the dart main function?
int binarySearch(List sortedList, T value,{int Function(T, T)? compare