📅  最后修改于: 2022-03-11 14:57:16.442000             🧑  作者: Mango
to set the merge option in set property
SetOptions(merge:true)
dataBase.collection('user').doc(userData.displayName).set({
'Name': userData.displayName,
'Email': userData.email,
'Login': userData.uid,
'PhotoUrl': userData.photoURL,
'LastSignIn': DateTime.now()
}, SetOptions(merge: true));