skip to Main Content

Is there a way to add fields to all documents in firebase – my new registration system includes firstname and last name?

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…

VIEW QUESTION
Back To Top
Search