retrieve method

Future<Map<String, dynamic>?> retrieve(
  1. String collection,
  2. String identifier
)

Returns document stored in collection under key identifier as a Map<String, dynamic>, or null if not found

Implementation

Future<Map<String, dynamic>?> retrieve(
        String collection, String identifier) =>
    _db.collection(collection).doc(identifier).get();