So i’m getting the obvious error of undefined name
CloudNote.fromSnapshot(QueryDocumentSnapshot<Map<String, dynamic>> snapshot)
firstName = snapshot.data()[firstNameFieldName] as String;
lastName = snapshot.data()[lastNameFieldName] as String;
I know the painful option of manually adding the field but…..last resort.
Strange that the Firestore Database doesn’t allow you to select all documents in your collection and add fields to all of them.
2
Answers
Adding a - update function in FirebaseCloudStorage class
Calling the class when button is tapped.
You could try something like this
That’s a good point, I think Firebase/Google are working on that feature. It is a little odd that they have only implemented delete functionality. But try the code above in your FirebaseCloudStorage class. Assign it to a button