Flutter/Dart returning Instance of '_Future<String>' instead the actual String Value
Following is my code. I'm trying to return the value of document ID from the Firebase database so I can delete that specific document. Future<String> getID() async { List<String> id = []; //Map<String, dynamic> user = jsonDecode(jsonString); await FirebaseFirestore.instance.collection("Babies").get().then((event) {…