
FlutterのFirebaseでFirestoreからwhereでdocument IDを取得する方法
これで取れる
return FirebaseFirestore.instance
.collection('コレクションの名前')
.where("title", isEqualTo: 変数)
.get()
.then(
(QuerySnapshot snapshot) => {
snapshot.docs.forEach((f) {
print("documentID---- " + f.reference.id);
}),
},
);