EfficientChild mixin
- Superclass constraints
- Available extensions
Properties
-
first
→ Future<
Snapshot> -
The first element of this stream.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBroadcast → bool
-
Whether this stream is a broadcast stream.
no setterinherited
-
isEmpty
→ Future<
bool> -
Whether this stream contains any elements.
no setterinherited
-
last
→ Future<
Snapshot> -
The last element of this stream.
no setterinherited
-
length
→ Future<
int> -
The number of elements in this stream.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
single
→ Future<
Snapshot> -
The single element of this stream.
no setterinherited
Methods
-
any(
bool test(Snapshot element)) → Future< bool> -
Checks whether
test
accepts any element provided by this stream.inherited -
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 -
asBroadcastStream(
{void onListen(StreamSubscription< Snapshot> subscription)?, void onCancel(StreamSubscription<Snapshot> subscription)?}) → Stream<Snapshot> -
Returns a multi-subscription stream that produces the same events as this.
inherited
-
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 -
asyncExpand<
E> (Stream< E> ? convert(Snapshot event)) → Stream<E> -
Transforms each element into a sequence of asynchronous events.
inherited
-
asyncMap<
E> (FutureOr< E> convert(Snapshot event)) → Stream<E> -
Creates a new stream with each data event of this stream asynchronously
mapped to a new event.
inherited
-
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
-
cast<
R> () → Stream< R> -
Adapt this stream to be a
Stream<R>
.inherited -
child(
String path) → Stream< Snapshot> -
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. -
contains(
Object? needle) → Future< bool> -
Returns whether
needle
occurs in the elements provided by this stream.inherited -
distinct(
[bool equals(Snapshot previous, Snapshot next)?]) → Stream< Snapshot> -
Skips data events if they are equal to the previous data event.
inherited
-
drain<
E> ([E? futureValue]) → Future< E> -
Discards all data on this stream, but signals when it is done or an error
occurred.
inherited
-
elementAt(
int index) → Future< Snapshot> -
Returns the value of the
index
th data event of this stream.inherited -
every(
bool test(Snapshot element)) → Future< bool> -
Checks whether
test
accepts all elements provided by this stream.inherited -
expand<
S> (Iterable< S> convert(Snapshot element)) → Stream<S> -
Transforms each element of this stream into a sequence of elements.
inherited
-
firstWhere(
bool test(Snapshot element), {Snapshot orElse()?}) → Future< Snapshot> -
Finds the first element of this stream matching
test
.inherited -
fold<
S> (S initialValue, S combine(S previous, Snapshot element)) → Future< S> -
Combines a sequence of values by repeatedly applying
combine
.inherited -
forEach(
void action(Snapshot element)) → Future< void> -
Executes
action
on each element of this stream.inherited -
handleError(
Function onError, {bool test(dynamic error)?}) → Stream< Snapshot> -
Creates a wrapper Stream that intercepts some errors from this stream.
inherited
-
join(
[String separator = ""]) → Future< String> -
Combines the string representation of elements into a single string.
inherited
-
lastWhere(
bool test(Snapshot element), {Snapshot orElse()?}) → Future< Snapshot> -
Finds the last element in this stream matching
test
.inherited -
listen(
void onData(Snapshot event)?, {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription< Snapshot> -
Adds a subscription to this stream.
inherited
-
map<
S> (S convert(Snapshot event)) → Stream< S> -
Transforms each element of this stream into a new stream event.
inherited
-
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 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pipe(
StreamConsumer< Snapshot> streamConsumer) → Future -
Pipes the events of this stream into
streamConsumer
.inherited -
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 -
reduce(
Snapshot combine(Snapshot previous, Snapshot element)) → Future< Snapshot> -
Combines a sequence of values by repeatedly applying
combine
.inherited -
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. -
singleWhere(
bool test(Snapshot element), {Snapshot orElse()?}) → Future< Snapshot> -
Finds the single element in this stream matching
test
.inherited -
skip(
int count) → Stream< Snapshot> -
Skips the first
count
data events from this stream.inherited -
skipWhile(
bool test(Snapshot element)) → Stream< Snapshot> -
Skip data events from this stream while they are matched by
test
.inherited -
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. -
take(
int count) → Stream< Snapshot> -
Provides at most the first
count
data events of this stream.inherited -
takeWhile(
bool test(Snapshot element)) → Stream< Snapshot> -
Forwards data events while
test
is successful.inherited -
timeout(
Duration timeLimit, {void onTimeout(EventSink< Snapshot> sink)?}) → Stream<Snapshot> -
Creates a new stream with the same events as this stream.
inherited
-
toList(
) → Future< List< Snapshot> > -
Collects all elements of this stream in a List.
inherited
-
toSet(
) → Future< Set< Snapshot> > -
Collects the data of this stream in a Set.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transform<
S> (StreamTransformer< Snapshot, S> streamTransformer) → Stream<S> -
Applies
streamTransformer
to this stream.inherited -
where(
bool test(Snapshot event)) → Stream< Snapshot> -
Creates a new stream from this stream that discards some elements.
inherited
-
withDecoder(
SnapshotDecoder decoder) → Stream< Snapshot> -
Available on Stream<
Returns a snapshot stream where each snapshot has the decoderSnapshot> , provided by the SnapshotStreamX extensiondecoder
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited