namedQueryGet method
Future<QuerySnapshot<Map<String, dynamic> > >
namedQueryGet(
- String name, {
- GetOptions options = const GetOptions(),
inherited
Reads a QuerySnapshot
if a namedQuery has been retrieved and passed as a Buffer
to loadBundle(). To read from cache, pass GetOptions.source
value as Source.cache
.
To read from the Firestore backend, use GetOptions.source
as Source.server
.
Implementation
Future<QuerySnapshot<Map<String, dynamic>>> namedQueryGet(
String name, {
GetOptions options = const GetOptions(),
}) async {
QuerySnapshotPlatform snapshotDelegate =
await _delegate.namedQueryGet(name, options: options);
return _JsonQuerySnapshot(FirebaseFirestore.instance, snapshotDelegate);
}