Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update the Map field - Flutter

How to update data of isVerified (Boolean) field. Personal Info is Map contains address and then isVerified.

enter image description here

like image 594
HDD Avatar asked Mar 02 '23 09:03

HDD


1 Answers

To update isVerified, you have to do the following:

Firestore.instance.collection("collection Name").document("documentId").updateData({
    "Personal Info.address.isVerified": true,
  }).then((_) {
    print("success!");
  });
like image 107
Peter Haddad Avatar answered Mar 30 '23 12:03

Peter Haddad