We have 2 binarySearch()
methods in Flutter.
One in Flutter build-in package flutter
and another one in third party package collection
.
When you imported import 'package:flutter/foundation.dart';
library, you used the first one.
According your url, you'd like to use package collection
https://api.flutter.dev/flutter/ ★package-collection_collection★ /lowerBound.html
So you should import package:collection/collection.dart
directly.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…