Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Future<void> addStudents() async {
//creates a new doc with unique doc ID
return collectionRef
.add({
'Name': "TestName",
})
.then((value) => debugPrint("User Added"))
.catchError((error) => debugPrint("Failed to add user: $error"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment