Is there a standard library method for binary search on a sorted list in Dart?
I've Googled and there seems to be one in flutter, but I can't find one in dart.
I also found this bug which mentions lowerBound()
and binary search. It appears there used to be a collections/algorithms package but this appears deprecated and I can't see a replacement in collections.dart
.
It isn't difficult to write one but I prefer to use standard library methods if possible.