CariusLars / ar_flutter_plugin

Flutter Plugin for AR (Augmented Reality) - Supports ARKit on iOS and ARCore on Android devices
MIT License
333 stars 254 forks source link

argument type error here. #177

Open chlguswns980105 opened 1 year ago

chlguswns980105 commented 1 year ago
  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