DocumentFetcher typedef

DocumentFetcher = Future<Map<String, dynamic>?> Function(String collection, String documentId)

Function signature for fetching a document by collection and ID.

Implementation

typedef DocumentFetcher = Future<Map<String, dynamic>?> Function(
  String collection,
  String documentId,
);