TurboFirestoreStreamApi<T> extension
Extension that adds stream operations to TurboFirestoreApi
Provides methods for real-time document updates from Firestore
Features:
- Collection streaming
- Single document streaming
- Query-based streaming
- Type-safe streaming
- Automatic conversion
- Collection group support
Example:
final api = TurboFirestoreApi<User>();
final stream = api.streamAll();
stream.listen((snapshot) {
print('Got ${snapshot.docs.length} users');
});
See also: TurboFirestoreListApi one-time list operations TurboFirestoreSearchApi search operations
- on
Methods
-
streamAll(
) → Stream< QuerySnapshot< Map< >String, dynamic> > -
Available on TurboFirestoreApi<
Streams all documents from a collection with exception handlingT> , provided by the TurboFirestoreStreamApi extension -
streamAllWithConverter(
) → Stream< List< T> > -
Available on TurboFirestoreApi<
Streams and converts all documents from a collection with error handlingT> , provided by the TurboFirestoreStreamApi extension -
streamByDocId(
{required String id, String? collectionPathOverride}) → Stream< DocumentSnapshot< Map< >String, dynamic> > -
Available on TurboFirestoreApi<
Streams a single documentT> , provided by the TurboFirestoreStreamApi extension -
streamByQuery(
{required CollectionReferenceDef< Map< ? collectionReferenceQuery, required String whereDescription}) → Stream<String, dynamic> >List< Map< >String, dynamic> > -
Available on TurboFirestoreApi<
Streams documents matching a queryT> , provided by the TurboFirestoreStreamApi extension -
streamByQueryWithConverter(
{CollectionReferenceDef< T> ? collectionReferenceQuery, required String whereDescription}) → Stream<List< T> > -
Available on TurboFirestoreApi<
Streams and converts documents matching a queryT> , provided by the TurboFirestoreStreamApi extension -
streamDocByIdWithConverter(
{required String id, String? collectionPathOverride}) → Stream< T?> -
Available on TurboFirestoreApi<
Streams and converts a single documentT> , provided by the TurboFirestoreStreamApi extension