SnapshotStreamX extension
Methods
-
as<
T> ({String? format}) → Stream< T> -
Available on Stream<
Returns a stream where each snapshot is converted to an object of type T.Snapshot> , provided by the SnapshotStreamX extension -
asList<
T> ({String? format}) → Stream< List< T> ?> -
Available on Stream<
Returns a stream where each snapshot is converted to a nullable list of objects of type T.Snapshot> , provided by the SnapshotStreamX extension -
asMap<
T> ({String? format}) → Stream< Map< String, T> ?> -
Available on Stream<
Returns a stream where each snapshot is converted to a nullable map with values of type T.Snapshot> , provided by the SnapshotStreamX extension -
asNonNullableList<
T> ({String? format}) → Stream< List< T> > -
Available on Stream<
Returns a stream where each snapshot is converted to a non-nullable list of objects of type T.Snapshot> , provided by the SnapshotStreamX extension -
asNonNullableMap<
T> ({String? format}) → Stream< Map< String, T> > -
Available on Stream<
Returns a stream where each snapshot is converted to a non-nullable map with values of type T.Snapshot> , provided by the SnapshotStreamX extension -
asyncSetPath(
String path, Stream childStream) → Stream< Snapshot> -
Available on Stream<
Updates the content atSnapshot> , provided by the SnapshotStreamX extensionpath
for each snapshot in this stream asynchronously with the values fromchildStream
-
child(
String path) → Stream< Snapshot> -
Available on Stream<
Takes the (grand)child defined bySnapshot> , provided by the SnapshotStreamX extensionpath
of each Snapshot in this stream. -
mapChildren(
dynamic mapper(String key, Snapshot value)) → Stream< Snapshot> -
Available on Stream<
Updates the content of each child with the value returned bySnapshot> , provided by the SnapshotStreamX extensionmapper
-
mapPath(
String path, dynamic mapper(Snapshot value)) → Stream< Snapshot> -
Available on Stream<
Snapshot> , provided by the SnapshotStreamX extension -
recycle(
) → Stream< Snapshot> -
Available on Stream<
Returns a snapshot stream where each new emitted snapshot reuses the cache of the previous snapshot with the same decoder.Snapshot> , provided by the SnapshotStreamX extension -
setPath(
String path, dynamic value) → Stream< Snapshot> -
Available on Stream<
Updates the content atSnapshot> , provided by the SnapshotStreamX extensionpath
for each snapshot in this stream. -
switchChildren(
Stream mapper(String key, Snapshot value)) → Stream< Snapshot> -
Available on Stream<
Updates the content of each child with the values of the stream returned bySnapshot> , provided by the SnapshotStreamX extensionmapper
-
switchPath(
String path, Stream mapper(Snapshot snapshot)) → Stream< Snapshot> -
Available on Stream<
Updates the content atSnapshot> , provided by the SnapshotStreamX extensionpath
for each snapshot in this stream asynchronously with the values from the stream returned by themapper
callback. -
withDecoder(
SnapshotDecoder decoder) → Stream< Snapshot> -
Available on Stream<
Returns a snapshot stream where each snapshot has the decoderSnapshot> , provided by the SnapshotStreamX extensiondecoder
.