Answers for "flutter firebase update data"

0

flutter firebase update data

CollectionReference users = FirebaseFirestore.instance.collection('users');

Future<void> updateUser() {
  return users
    .doc('ABC123')
    .update({'company': 'Stokes and Sons'})
    .then((value) => print("User Updated"))
    .catchError((error) => print("Failed to update user: $error"));
}
Posted by: Guest on May-01-2022

Code answers related to "flutter firebase update data"

Code answers related to "Dart"

Browse Popular Code Answers by Language