saveNewUser static method
dynamic
saveNewUser(
- User logInUser
Implementation
static saveNewUser(User logInUser) {
List<String> friendList = [];
FirebaseFirestore.instance.collection(getDocName()).doc(logInUser.uid).set({
'nickname': logInUser.displayName,
'photoUrl': logInUser.photoURL,
'userId': logInUser.uid,
'email': logInUser.email,
'friends': friendList,
'createdAt': DateTime.now().millisecondsSinceEpoch.toString(),
'chattingWith': null,
'online': null
});
}