skip to Main Content

Flutter: How do I get a string value instead of Instance of 'AggregateQuerySnapshot'

My code is as follows: Future<String> addPlayersToTable() async { var userName = await getUserName(); userName = userName.toString(); String uid = getUid(); var photoUrl = await getPhotoUrl(); photoUrl = photoUrl.toString(); await _firestore.collection('public_tables').doc().set({'test': 'test'}); await _firestore .collection('public_tables') .doc() .collection('players') .doc(uid) .set({ 'username':…

VIEW QUESTION
Back To Top
Search