Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter firestore read data

static final db = FirebaseFirestore.instance;

static Future<Map<String, dynamic>?> read(String collection, String document) async {
    final snapshot = await db.collection(collection).doc(document).get();
    return snapshot.data();
  }
 
PREVIOUS NEXT
Tagged: #flutter #firestore #read #data
ADD COMMENT
Topic
Name
3+3 =