I want to retrieve data from a Firestore collection group using Flutter, but I'm encountering an error and unable to retrieve it
In the Flutter app, I'm trying to retrieve data stored in a Firestore subcollection using this method. Stream<List<DocumentSnapshot<Object?>>> fetchNearbyData({ required LatLng location, }) { final collectionReference = FirebaseFirestore.instance .collectionGroup(`postData`); return GeoFlutterFire() .collection(collectionRef: collectionReference) .within( center: GeoFlutterFire().point( latitude: location.latitude, longitude: location.longitude,…