Last active
October 16, 2020 10:27
-
-
Save PeterHdd/02433b7d25cb79d92f3833ea94893771 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(){ | |
| var firebaseUser = FirebaseAuth.instance.currentUser; | |
| firestoreInstance.collection("users").doc(firebaseUser.uid).set( | |
| { | |
| "name" : "john", | |
| "age" : 50, | |
| "email" : "example@example.com", | |
| "address" : { | |
| "street" : "street 24", | |
| "city" : "new york" | |
| } | |
| }).then((_){ | |
| print("success!"); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment