void downloadAnchorsByLocation(
FirebaseDocumentStreamListener listener, Position location, double radius) {
GeoFirePoint center = geo!.point(latitude: location.latitude, longitude: location.longitude);
// Error Here
Stream<List<DocumentSnapshot>> stream = geo!
.collection(collectionRef: anchorCollection!)
.within(center: center, radius: radius, field: 'position');
stream.listen((List<DocumentSnapshot> documentList) {
documentList.forEach((element) {
listener(element);
});
});
}
CollectionReference<Object?>? anchorCollection
Type: CollectionReference<Object?>? package:jeju_bomz/src/ui/ar/externalmodelmanagementexample.dart
The argument type 'CollectionReference<Object?>' can't be assigned to the parameter type 'Query<Map<String, dynamic>>'.dart[argument_type_not_assignable](https://dart.dev/diagnostics/argument_type_not_assignable)
I wanna use example code.
Error Files:
cloudanchorexample.dart
externalmodelmanagementexample.dart
I wanna use example code. Error Files: cloudanchorexample.dart externalmodelmanagementexample.dart