我有几个关于在dart中使用Futures的问题。假设我正在使用firestore,并且我有这样的功能来更新用户的信息:voidupdateOldUser(UseroldUser,StringnewInfo){DocumentReferenceuserToUpdateRef=userRef.document(oldUser.id);Firestore.instance.runTransaction((Transactiontransaction)async{DocumentSnapshotuserToUpdateSnapshot=awaittransaction.get(userToU
我有几个关于在dart中使用Futures的问题。假设我正在使用firestore,并且我有这样的功能来更新用户的信息:voidupdateOldUser(UseroldUser,StringnewInfo){DocumentReferenceuserToUpdateRef=userRef.document(oldUser.id);Firestore.instance.runTransaction((Transactiontransaction)async{DocumentSnapshotuserToUpdateSnapshot=awaittransaction.get(userToU