Created
April 3, 2020 21:43
-
-
Save PeterHdd/4f76c67dbcf59dee621fc325b2aa950d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void _onPressed()async{ | |
| var firebaseUser = await FirebaseAuth.instance.currentUser(); | |
| firestoreInstance | |
| .collection("users") | |
| .document(firebaseUser.uid) | |
| .updateData({"age": 60}).then((_) { | |
| print("success!"); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment