StreamSignalMixin<T> mixin
Stream implementation for AsyncState
- Superclass constraints
- Implemented types
-
- Stream<
T>
- Stream<
- Available extensions
- BoolSignalExtension
- BufferExtensions
- ComparableSignalExtension
- ConcatExtensions
- ConnectableStreamExtensions
- DebounceExtensions
- DefaultIfEmptyExtension
- DelayExtension
- DelayWhenExtension
- DematerializeExtension
- DistinctUniqueExtension
- DoExtensions
- DoubleSignalExtension
- EndWithExtension
- EndWithManyExtension
- EnumSignalExtension
- ExhaustMapExtension
- FlatMapExtension
- FlutterReadonlySignalUtils
- GroupByExtension
- IgnoreElementsExtension
- IntervalExtension
- IntSignalExtension
- MapNotNullExtension
- MapToExtension
- MaterializeExtension
- MaxExtension
- MergeExtension
- MinExtension
- NumSignalExtension
- OnErrorExtensions
- PairwiseExtension
- PatternSignalExtension
- ReadonlyIterableSignalExtension
- ReadonlyListSignalExtension
- ReadonlyMapSignalExtension
- ReadonlySetSignalExtension
- ReadonlySignalUtils
- SampleExtensions
- ScanExtension
- SignalObserveExtension
- SignalStreamUtils
- SkipLastExtension
- SkipUntilExtension
- StartWithExtension
- StartWithManyExtension
- StreamErrorRecovery
- StreamTransformations
- StringSignalExtension
- SwitchIfEmptyExtension
- SwitchMapExtension
- TakeLastExtension
- TakeUntilExtension
- TakeWhileInclusiveExtension
- ThrottleExtensions
- TimeIntervalExtension
- TimeStampExtension
- WhereNotNullExtension
- WhereTypeExtension
- WindowExtensions
- WithLatestFromExtensions
- ZipWithExtension
Properties
- autoDispose ↔ bool
-
Throws and error if read after dispose and can be
disposed on last unsubscribe.
getter/setter pairinherited
- bitLength → int
-
Available on ReadonlySignal<
Returns the minimum number of bits required to store this integer.int> , provided by the IntSignalExtension extensionno setter -
codeUnits
→ List<
int> -
Available on ReadonlySignal<
An unmodifiable list of the UTF-16 code units of this string.String> , provided by the StringSignalExtension extensionno setter - debugLabel → String?
-
Debug label for Debug Mode
no setterinherited
- disposed ↔ bool
-
Check if the effect is disposed
getter/setter pairinherited
-
entries
→ Iterable<
MapEntry< K, V> > -
Available on ReadonlySignal<
Map< , provided by the ReadonlyMapSignalExtension extensionK, V> >no setter - first → E
-
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> >no setter -
first
→ Future<
T> -
The first element of this stream.
no setteroverride
- globalId → int
-
Global ID of the signal
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
Available on ReadonlySignal<
A numeric identifier for the enumerated value.Enum> , provided by the EnumSignalExtension extensionno setter - isBroadcast → bool
-
Whether this stream is a broadcast stream.
no setteroverride
-
isEmpty
→ Future<
bool> -
Whether this stream contains any elements.
no setteroverride
- isEmpty → bool
-
Available on ReadonlySignal<
Whether this string is empty.String> , provided by the StringSignalExtension extensionno setter - isEmpty → bool
-
Available on ReadonlySignal<
Map< , provided by the ReadonlyMapSignalExtension extensionK, V> >no setter - isEmpty → bool
-
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> >no setter - isEven → bool
-
Available on ReadonlySignal<
Returns true if and only if this integer is even.int> , provided by the IntSignalExtension extensionno setter - isFinite → bool
-
Available on ReadonlySignal<
Whether this number is finite.num> , provided by the NumSignalExtension extensionno setter - isInfinite → bool
-
Available on ReadonlySignal<
Whether this number is positive infinity or negative infinity.num> , provided by the NumSignalExtension extensionno setter - isInitialized → bool
-
Check if a signal value is set (does not subscribe)
no setterinherited
- isNaN → bool
-
Available on ReadonlySignal<
Whether this number is a Not-a-Number value.num> , provided by the NumSignalExtension extensionno setter - isNegative → bool
-
Available on ReadonlySignal<
Whether this number is negative.num> , provided by the NumSignalExtension extensionno setter - isNotEmpty → bool
-
Available on ReadonlySignal<
Whether this string is not empty.String> , provided by the StringSignalExtension extensionno setter - isNotEmpty → bool
-
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> >no setter - isNotEmpty → bool
-
Available on ReadonlySignal<
Map< , provided by the ReadonlyMapSignalExtension extensionK, V> >no setter - isOdd → bool
-
Available on ReadonlySignal<
Returns true if and only if this integer is odd.int> , provided by the IntSignalExtension extensionno setter -
iterator
→ Iterator<
E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> >no setter -
keys
→ Iterable<
K> -
Available on ReadonlySignal<
Map< , provided by the ReadonlyMapSignalExtension extensionK, V> >no setter - last → E
-
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> >no setter - last → E
-
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> >no setter -
last
→ Future<
T> -
The last element of this stream.
no setteroverride
- length → int
-
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> >no setter - length → int
-
Available on ReadonlySignal<
Map< , provided by the ReadonlyMapSignalExtension extensionK, V> >no setter - length → int
-
Available on ReadonlySignal<
The length of the string.String> , provided by the StringSignalExtension extensionno setter -
length
→ Future<
int> -
The number of elements in this stream.
no setteroverride
- name → String
-
Available on ReadonlySignal<
The name of the enum value.Enum> , provided by the EnumSignalExtension extensionno setter -
reversed
→ Iterable<
E> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> >no setter - runes → Runes
-
Available on ReadonlySignal<
An Iterable of Unicode code-points of this string.String> , provided by the StringSignalExtension extensionno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sign → int
-
Available on ReadonlySignal<
Returns the sign of this integer.int> , provided by the IntSignalExtension extensionno setter - sign → double
-
Available on ReadonlySignal<
The sign of the double's numerical value.double> , provided by the DoubleSignalExtension extensionno setter - sign → num
-
Available on ReadonlySignal<
Negative one, zero or positive one depending on the sign and numerical value of this number.num> , provided by the NumSignalExtension extensionno setter - single → E
-
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> >no setter -
single
→ Future<
T> -
The single element of this stream.
no setteroverride
- value → T
-
Compute the current value
no setterinherited
-
values
→ Iterable<
V> -
Available on ReadonlySignal<
Map< , provided by the ReadonlyMapSignalExtension extensionK, V> >no setter
Methods
-
abs(
) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
abs(
) → num -
Available on ReadonlySignal<
The absolute value of this number.num> , provided by the NumSignalExtension extension -
abs(
) → int -
Available on ReadonlySignal<
Returns the absolute value of this integer.int> , provided by the IntSignalExtension extension -
allMatches(
String string, [int start = 0]) → Iterable< Match> -
Available on ReadonlySignal<
Matches this pattern against the string repeatedly.Pattern> , provided by the PatternSignalExtension extension -
any(
bool test(T element)) → Future< bool> -
Checks whether
testaccepts any element provided by this stream.override -
any(
bool test(E element)) → bool -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
asBroadcastStream(
{void onListen(StreamSubscription< T> subscription)?, void onCancel(StreamSubscription<T> subscription)?}) → Stream<T> -
Returns a multi-subscription stream that produces the same events as this.
override
-
asMap(
) → Map< int, E> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
asPausable(
) → PausableStream< T> -
Available on Stream<
Returns a pausable version of this stream.T> , provided by the StreamTransformations extension -
asyncExpand<
E> (Stream< E> ? convert(T event)) → Stream<E> -
Transforms each element into a sequence of asynchronous events.
override
-
asyncMap<
E> (FutureOr< E> convert(T event)) → Stream<E> -
Creates a new stream with each data event of this stream asynchronously
mapped to a new event.
override
-
buffer(
Stream< void> window) → Stream<List< T> > -
Available on Stream<
Creates a Stream where each item is a List containing the items from the source sequence.T> , provided by the BufferExtensions extension -
bufferCount(
int count, [int startBufferEvery = 0]) → Stream< List< T> > -
Available on Stream<
Buffers a number of values from the source Stream byT> , provided by the BufferExtensions extensioncountthen emits the buffer and clears it, and starts a new buffer eachstartBufferEveryvalues. IfstartBufferEveryis not provided, then new buffers are started immediately at the start of the source and when each buffer closes and is emitted. -
bufferCount(
int count) → Stream< List< T> > -
Available on Stream<
Buffers incoming events into lists of sizeT> , provided by the StreamTransformations extensioncount. -
bufferTest(
bool onTestHandler(T event)) → Stream< List< T> > -
Available on Stream<
Creates a Stream where each item is a List containing the items from the source sequence, batched whenever test passes.T> , provided by the BufferExtensions extension -
bufferTime(
Duration duration) → Stream< List< T> > -
Available on Stream<
Creates a Stream where each item is a List containing the items from the source sequence, sampled on a time frame withT> , provided by the BufferExtensions extensionduration. -
call(
) → T -
Return the value when invoked
inherited
-
cast<
R> () → Set< R> -
Available on ReadonlySignal<
Set< , provided by the ReadonlySetSignalExtension extensionE> > -
cast<
R> () → Stream< R> -
Adapt this stream to be a
Stream<R>.override -
cast<
R> () → Iterable< R> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
cast<
R> () → List< R> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
cast<
RK, RV> () → Map< RK, RV> -
Available on ReadonlySignal<
Map< , provided by the ReadonlyMapSignalExtension extensionK, V> > -
ceil(
) → int -
Available on ReadonlySignal<
Returnsint> , provided by the IntSignalExtension extensionthis. -
ceil(
) → int -
Available on ReadonlySignal<
Returns the least integer that is not smaller than this number.double> , provided by the DoubleSignalExtension extension -
ceil(
) → int -
Available on ReadonlySignal<
The least integer no smaller thannum> , provided by the NumSignalExtension extensionthis. -
ceilToDouble(
) → double -
Available on ReadonlySignal<
Returns the least integer double value no smaller thandouble> , provided by the DoubleSignalExtension extensionthis. -
ceilToDouble(
) → double -
Available on ReadonlySignal<
Returnsint> , provided by the IntSignalExtension extensionthis.toDouble(). -
ceilToDouble(
) → double -
Available on ReadonlySignal<
Returns the least double integer value no smaller thannum> , provided by the NumSignalExtension extensionthis. -
clamp(
num lowerLimit, num upperLimit) → num -
Available on ReadonlySignal<
Returns this num clamped to be in the rangenum> , provided by the NumSignalExtension extensionlowerLimit-upperLimit. -
codeUnitAt(
int index) → int -
Available on ReadonlySignal<
Returns the 16-bit UTF-16 code unit at the givenString> , provided by the StringSignalExtension extensionindex. -
compareTo(
T other) → int -
Available on ReadonlySignal<
Compares this object to another object.T> , provided by the ComparableSignalExtension extension -
completeOnError(
) → Stream< T> -
Available on Stream<
Completes the stream immediately upon an error, swallowing the error.T> , provided by the StreamErrorRecovery extension -
concatWith(
Iterable< Stream< other) → Stream<T> >T> -
Available on Stream<
Returns a Stream that emits all items from the current Stream, then emits all items from the given streams, one after the next.T> , provided by the ConcatExtensions extension -
contains(
Object? value) → bool -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
contains(
Object? needle) → Future< bool> -
Returns whether
needleoccurs in the elements provided by this stream.override -
contains(
Pattern other, [int startIndex = 0]) → bool -
Available on ReadonlySignal<
Whether this string contains a match ofString> , provided by the StringSignalExtension extensionother. -
containsAll(
Iterable< Object?> other) → bool -
Available on ReadonlySignal<
Set< , provided by the ReadonlySetSignalExtension extensionE> > -
containsKey(
Object? key) → bool -
Available on ReadonlySignal<
Map< , provided by the ReadonlyMapSignalExtension extensionK, V> > -
containsValue(
Object? value) → bool -
Available on ReadonlySignal<
Map< , provided by the ReadonlyMapSignalExtension extensionK, V> > -
debounce(
Stream< void> window(T event)) → Stream<T> -
Available on Stream<
Transforms a Stream so that will only emit items from the source sequence if aT> , provided by the DebounceExtensions extensionwindowhas completed, without the source sequence emitting another item. -
debounceTime(
Duration duration) → Stream< T> -
Available on Stream<
Transforms a Stream so that will only emit items from the source sequence whenever the time span defined byT> , provided by the DebounceExtensions extensiondurationpasses, without the source sequence emitting another item. -
defaultIfEmpty(
T defaultValue) → Stream< T> -
Available on Stream<
Emit items from the source Stream, or a single default item if the source Stream emits nothing.T> , provided by the DefaultIfEmptyExtension extension -
delay(
Duration duration) → Stream< T> -
Available on Stream<
The Delay operator modifies its source Stream by pausing for a particular increment of time (that you specify) before emitting each of the source Stream’s items. This has the effect of shifting the entire sequence of items emitted by the Stream forward in time by that specified increment.T> , provided by the DelayExtension extension -
delayWhen(
Stream< void> itemDelaySelector(T value), {Stream<void> ? listenDelay}) → Stream<T> -
Available on Stream<
Delays the emission of items from the source Stream by a given time span determined by the emissions of another Stream.T> , provided by the DelayWhenExtension extension -
dematerialize(
) → Stream< T> -
Available on Stream<
Converts the onData, onDone, and onError StreamNotification objects from a materialized stream into normal onData, onDone, and onError events.StreamNotification< , provided by the DematerializeExtension extensionT> > -
difference(
Set< Object?> other) → Set<E> -
Available on ReadonlySignal<
Set< , provided by the ReadonlySetSignalExtension extensionE> > -
dispose(
) → void -
Dispose the signal
override
-
distinct(
[bool equals(T previous, T next)?]) → Stream< T> -
Skips data events if they are equal to the previous data event.
override
-
distinctUnique(
{bool equals(T e1, T e2)?, int hashCode(T e)?}) → Stream< T> -
Available on Stream<
WARNING: More commonly known as distinct in other Rx implementations. Creates a Stream where data events are skipped if they have already been emitted before.T> , provided by the DistinctUniqueExtension extension -
doOnCancel(
FutureOr< void> onCancel()) → Stream<T> -
Available on Stream<
Invokes the given callback function when the stream subscription is cancelled. Often called doOnUnsubscribe or doOnDispose in other implementations.T> , provided by the DoExtensions extension -
doOnData(
void onData(T event)) → Stream< T> -
Available on Stream<
Invokes the given callback function when the stream emits an item. In other implementations, this is called doOnNext.T> , provided by the DoExtensions extension -
doOnDone(
void onDone()) → Stream< T> -
Available on Stream<
Invokes the given callback function when the stream finishes emitting items. In other implementations, this is called doOnComplete(d).T> , provided by the DoExtensions extension -
doOnEach(
void onEach(StreamNotification< T> notification)) → Stream<T> -
Available on Stream<
Invokes the given callback function when the stream emits data, emits an error, or emits done. The callback receives a StreamNotification object.T> , provided by the DoExtensions extension -
doOnError(
void onError(Object, StackTrace)) → Stream< T> -
Available on Stream<
Invokes the given callback function when the stream emits an error.T> , provided by the DoExtensions extension -
doOnListen(
void onListen()) → Stream< T> -
Available on Stream<
Invokes the given callback function when the stream is first listened to.T> , provided by the DoExtensions extension -
doOnPause(
void onPause()) → Stream< T> -
Available on Stream<
Invokes the given callback function when the stream subscription is paused.T> , provided by the DoExtensions extension -
doOnResume(
void onResume()) → Stream< T> -
Available on Stream<
Invokes the given callback function when the stream subscription resumes receiving items.T> , provided by the DoExtensions extension -
drain<
E> ([E? futureValue]) → Future< E> -
Discards all data on this stream, but signals when it is done or an error
occurred.
override
-
elementAt(
int index) → Future< T> -
Returns the value of the
indexth data event of this stream.override -
elementAt(
int index) → E -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
endsWith(
String other) → bool -
Available on ReadonlySignal<
Whether this string ends withString> , provided by the StringSignalExtension extensionother. -
endWith(
T endValue) → Stream< T> -
Available on Stream<
Appends a value to the source Stream before closing.T> , provided by the EndWithExtension extension -
endWithMany(
Iterable< T> endValues) → Stream<T> -
Available on Stream<
Appends a sequence of values as final events to the source Stream before closing.T> , provided by the EndWithManyExtension extension -
every(
bool test(E element)) → bool -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
every(
bool test(T element)) → Future< bool> -
Checks whether
testaccepts all elements provided by this stream.override -
exhaustMap<
S> (Stream< S> mapper(T value)) → Stream<S> -
Available on Stream<
Converts items from the source stream into a Stream using a given mapper. It ignores all items from the source stream until the new stream completes.T> , provided by the ExhaustMapExtension extension -
expand<
R> (Iterable< R> toElements(E element)) → Iterable<R> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
expand<
R> (Iterable< R> toElements(E element)) → Iterable<R> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
expand<
S> (Iterable< S> convert(T element)) → Stream<S> -
Transforms each element of this stream into a sequence of elements.
override
-
firstWhere(
bool test(E element), {E orElse()?}) → E -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
firstWhere(
bool test(E element), {E orElse()?}) → E -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
firstWhere(
bool test(T element), {T orElse()?}) → Future< T> -
Finds the first element of this stream matching
test.override -
flatMap<
S> (Stream< S> mapper(T value), {int? maxConcurrent}) → Stream<S> -
Available on Stream<
Converts each emitted item into a Stream using the given mapper function, while limiting the maximum number of concurrent subscriptions to these Streams. The newly created Stream will be be listened to and begin emitting items downstream.T> , provided by the FlatMapExtension extension -
flatMapIterable<
S> (Stream< Iterable< mapper(T value), {int? maxConcurrent}) → Stream<S> >S> -
Available on Stream<
Converts each item into a Stream. The Stream must return an Iterable. Then, each item from the Iterable will be emitted one by one.T> , provided by the FlatMapExtension extension -
floor(
) → int -
Available on ReadonlySignal<
Returns the greatest integer no greater than this number.double> , provided by the DoubleSignalExtension extension -
floor(
) → int -
Available on ReadonlySignal<
Returnsint> , provided by the IntSignalExtension extensionthis. -
floor(
) → int -
Available on ReadonlySignal<
The greatest integer no greater than this number.num> , provided by the NumSignalExtension extension -
floorToDouble(
) → double -
Available on ReadonlySignal<
Returns the greatest double integer value no greater thannum> , provided by the NumSignalExtension extensionthis. -
floorToDouble(
) → double -
Available on ReadonlySignal<
Returns the greatest integer double value no greater thandouble> , provided by the DoubleSignalExtension extensionthis. -
floorToDouble(
) → double -
Available on ReadonlySignal<
Returnsint> , provided by the IntSignalExtension extensionthis.toDouble(). -
fold<
R> (R initialValue, R combine(R previousValue, E element)) → R -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
fold<
S> (S initialValue, S combine(S previous, T element)) → Future< S> -
Combines a sequence of values by repeatedly applying
combine.override -
fold<
R> (R initialValue, R combine(R previousValue, E element)) → R -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
followedBy(
Iterable< E> other) → Iterable<E> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
followedBy(
Iterable< E> other) → Iterable<E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
forEach(
void action(T element)) → Future< void> -
Executes
actionon each element of this stream.override -
forEach(
void action(E element)) → void -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
gcd(
int other) → int -
Available on ReadonlySignal<
Returns the greatest common divisor of this integer andint> , provided by the IntSignalExtension extensionother. -
get(
) → T -
Helper method to get the current value
inherited
-
getRange(
int start, int end) → Iterable< E> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
groupBy<
K> (K grouper(T value), {Stream< void> durationSelector(GroupedStream<T, K> grouped)?}) → Stream<GroupedStream< T, K> > -
Available on Stream<
The GroupBy operator divides a Stream that emits items into a Stream that emits GroupedStream, each one of which emits some subset of the items from the original source Stream.T> , provided by the GroupByExtension extension -
handleError(
Function onError, {bool test(dynamic error)?}) → Stream< T> -
Creates a wrapper Stream that intercepts some errors from this stream.
override
-
ignoreElements(
) → Stream< Never> -
Available on Stream<
Creates a Stream where all emitted items are ignored, only the error / completed notifications are passedT> , provided by the IgnoreElementsExtension extension -
indexOf(
Pattern pattern, [int start = 0]) → int -
Available on ReadonlySignal<
Returns the position of the first match ofString> , provided by the StringSignalExtension extensionpatternin this string, starting atstart, inclusive: -
indexOf(
E element, [int start = 0]) → int -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
indexWhere(
bool test(E element), [int start = 0]) → int -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
intersection(
Set< Object?> other) → Set<E> -
Available on ReadonlySignal<
Set< , provided by the ReadonlySetSignalExtension extensionE> > -
interval(
Duration duration) → Stream< T> -
Available on Stream<
Creates a Stream that emits each item in the Stream after a given duration.T> , provided by the IntervalExtension extension -
join(
[String separator = ""]) → String -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
join(
[String separator = ""]) → Future< String> -
Combines the string representation of elements into a single string.
override
-
lastIndexOf(
E element, [int? start]) → int -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
lastIndexOf(
Pattern pattern, [int? start]) → int -
Available on ReadonlySignal<
The starting position of the last matchString> , provided by the StringSignalExtension extensionpatternin this string. -
lastIndexWhere(
bool test(E element), [int? start]) → int -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
lastWhere(
bool test(T element), {T orElse()?}) → Future< T> -
Finds the last element in this stream matching
test.override -
lastWhere(
bool test(E element), {E orElse()?}) → E -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
listen(
void onData(T event)?, {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription< T> -
Adds a subscription to this stream.
override
-
lookup(
Object? object) → E? -
Available on ReadonlySignal<
Set< , provided by the ReadonlySetSignalExtension extensionE> > -
map<
S> (S convert(T event)) → Stream< S> -
Transforms each element of this stream into a new stream event.
override
-
map<
R> (R toElement(E e)) → Iterable< R> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
map<
K2, V2> (MapEntry< K2, V2> convert(K key, V value)) → Map<K2, V2> -
Available on ReadonlySignal<
Map< , provided by the ReadonlyMapSignalExtension extensionK, V> > -
mapNotNull<
R extends Object> (R? transform(T)) → Stream< R> -
Available on Stream<
Returns a Stream containing only the non-T> , provided by the MapNotNullExtension extensionnullresults of applying the giventransformfunction to each element of this Stream. -
mapTo<
T> (T value) → Stream< T> -
Available on Stream<
Emits the given constant value on the output Stream every time the source Stream emits a value.S> , provided by the MapToExtension extension -
matchAsPrefix(
String string, [int start = 0]) → Match? -
Available on ReadonlySignal<
Matches this pattern against the start ofPattern> , provided by the PatternSignalExtension extensionstring. -
materialize(
) → Stream< StreamNotification< T> > -
Available on Stream<
Converts the onData, on Done, and onError events into StreamNotification objects that are passed into the downstream onData listener.T> , provided by the MaterializeExtension extension -
max(
[Comparator< T> ? comparator]) → Future<T> -
Available on Stream<
Converts a Stream into a Future that completes with the largest item emitted by the Stream.T> , provided by the MaxExtension extension -
mergeWith(
Iterable< Stream< streams) → Stream<T> >T> -
Available on Stream<
Combines the items emitted by multiple streams into a single stream of items. The items are emitted in the order they are emitted by their sources.T> , provided by the MergeExtension extension -
min(
[Comparator< T> ? comparator]) → Future<T> -
Available on Stream<
Converts a Stream into a Future that completes with the smallest item emitted by the Stream.T> , provided by the MinExtension extension -
modInverse(
int modulus) → int -
Available on ReadonlySignal<
Returns the modular multiplicative inverse of this integer moduloint> , provided by the IntSignalExtension extensionmodulus. -
modPow(
int exponent, int modulus) → int -
Available on ReadonlySignal<
Returns this integer to the power ofint> , provided by the IntSignalExtension extensionexponentmodulomodulus. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observe(
Widget builder(T), {Key? key, void onInit(T value)?, Function? onValueUpdated, void onAfterBuild(T value)?, void onDispose(T value)?, bool shouldRebuild(T newValue, T oldValue)?, bool shouldNotify(T newValue, T oldValue)?, bool equals(T a, T b)?, Duration? debounce, Duration? throttle, void onError(Object error, StackTrace stack)?, Widget errorBuilder(Object error)?, Widget loadingBuilder()?, String? debugLabel, bool debugPrint = false}) → SignalsWatch< T> -
Available on ReadonlySignal<
Observe this signal and rebuild when it changes.T> , provided by the SignalObserveExtension extension -
onDispose(
void cleanup()) → void Function() -
Add a cleanup function to be called when the signal is disposed
inherited
-
onErrorResume(
Stream< T> recoveryFn(Object error, StackTrace stackTrace)) → Stream<T> -
Available on Stream<
Intercepts error events and switches to a recovery stream created by the providedT> , provided by the OnErrorExtensions extensionrecoveryFn. -
onErrorResumeNext(
Stream< T> recoveryStream) → Stream<T> -
Available on Stream<
Intercepts error events and switches to the given recovery stream in that caseT> , provided by the OnErrorExtensions extension -
onErrorReturn(
T returnValue) → Stream< T> -
Available on Stream<
Instructs a Stream to emit a particular item when it encounters an error, and then terminate normallyT> , provided by the OnErrorExtensions extension -
onErrorReturnWith(
T returnFn(Object error, StackTrace stackTrace)) → Stream< T> -
Available on Stream<
Instructs a Stream to emit a particular item created by theT> , provided by the OnErrorExtensions extensionreturnFnwhen it encounters an error, and then terminate normally. -
padLeft(
int width, [String padding = ' ']) → String -
Available on ReadonlySignal<
Pads this string on the left if it is shorter thanString> , provided by the StringSignalExtension extensionwidth. -
padRight(
int width, [String padding = ' ']) → String -
Available on ReadonlySignal<
Pads this string on the right if it is shorter thanString> , provided by the StringSignalExtension extensionwidth. -
pairwise(
) → Stream< List< T> > -
Available on Stream<
Emits the n-th and n-1th events as a pair. The first event won't be emitted until the second one arrives.T> , provided by the PairwiseExtension extension -
peek(
) → T -
In the rare instance that you have an effect that should write to another signal based on the previous value, but you don't want the effect to be subscribed to that signal, you can read a signals's previous value via
signal.peek().inherited -
pipe(
StreamConsumer< T> streamConsumer) → Future -
Pipes the events of this stream into
streamConsumer.override -
publish(
) → PublishConnectableStream< T> -
Available on Stream<
Convert the current Stream into a ConnectableStream that can be listened to multiple times. It will not begin emitting items from the original Stream until theT> , provided by the ConnectableStreamExtensions extensionconnectmethod is invoked. -
publishReplay(
{int? maxSize}) → ReplayConnectableStream< T> -
Available on Stream<
Convert the current Stream into a ReplayConnectableStream that can be listened to multiple times. It will not begin emitting items from the original Stream until theT> , provided by the ConnectableStreamExtensions extensionconnectmethod is invoked. -
publishValue(
) → ValueConnectableStream< T> -
Available on Stream<
Convert the current Stream into a ValueConnectableStream that can be listened to multiple times. It will not begin emitting items from the original Stream until theT> , provided by the ConnectableStreamExtensions extensionconnectmethod is invoked. -
publishValueSeeded(
T seedValue) → ValueConnectableStream< T> -
Available on Stream<
Convert the current Stream into a ValueConnectableStream that can be listened to multiple times, providing an initial seeded value. It will not begin emitting items from the original Stream until theT> , provided by the ConnectableStreamExtensions extensionconnectmethod is invoked. -
rateLimit(
int maxEvents, Duration duration) → Stream< T> -
Available on Stream<
Limits the rate of event emissions, allowing at mostT> , provided by the StreamTransformations extensionmaxEventsduring eachdurationwindow. -
reduce(
T combine(T previous, T element)) → Future< T> -
Combines a sequence of values by repeatedly applying
combine.override -
reduce(
E combine(E value, E element)) → E -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
remainder(
num other) → num -
Available on ReadonlySignal<
The remainder of the truncating division ofnum> , provided by the NumSignalExtension extensionthisbyother. -
remainder(
num other) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
replaceAll(
Pattern from, String replace) → String -
Available on ReadonlySignal<
Replaces all substrings that matchString> , provided by the StringSignalExtension extensionfromwithreplace. -
replaceAllMapped(
Pattern from, String replace(Match match)) → String -
Available on ReadonlySignal<
Replace all substrings that matchString> , provided by the StringSignalExtension extensionfromby a computed string. -
replaceFirst(
Pattern from, String to, [int startIndex = 0]) → String -
Available on ReadonlySignal<
Creates a new string with the first occurrence ofString> , provided by the StringSignalExtension extensionfromreplaced byto. -
replaceFirstMapped(
Pattern from, String replace(Match match), [int startIndex = 0]) → String -
Available on ReadonlySignal<
Replace the first occurrence ofString> , provided by the StringSignalExtension extensionfromin this string. -
replaceOnError(
{required T defaultValue}) → Stream< T> -
Available on Stream<
Replaces an error event withT> , provided by the StreamErrorRecovery extensiondefaultValueand then completes the stream. -
replaceRange(
int start, int? end, String replacement) → String -
Available on ReadonlySignal<
Replaces the substring fromString> , provided by the StringSignalExtension extensionstarttoendwithreplacement. -
retry(
{int retryCount = 3, Duration delayFactor = const Duration(seconds: 1), bool shouldRetry(Object error)?}) → Stream< T> -
Available on Stream<
Retries the stream subscription in case of error.T> , provided by the StreamErrorRecovery extension -
round(
) → int -
Available on ReadonlySignal<
The integer closest to this number.num> , provided by the NumSignalExtension extension -
round(
) → int -
Available on ReadonlySignal<
Returns the integer closest to this number.double> , provided by the DoubleSignalExtension extension -
round(
) → int -
Available on ReadonlySignal<
Returnsint> , provided by the IntSignalExtension extensionthis. -
roundToDouble(
) → double -
Available on ReadonlySignal<
The double integer value closest to this value.num> , provided by the NumSignalExtension extension -
roundToDouble(
) → double -
Available on ReadonlySignal<
Returnsint> , provided by the IntSignalExtension extensionthis.toDouble(). -
roundToDouble(
) → double -
Available on ReadonlySignal<
Returns the integer double value closest todouble> , provided by the DoubleSignalExtension extensionthis. -
sample(
Stream sampleStream) → Stream< T> -
Available on Stream<
Emits the most recently emitted item (if any) emitted by the source Stream since the previous emission from theT> , provided by the SampleExtensions extensionsampleStream. -
sampleTime(
Duration duration) → Stream< T> -
Available on Stream<
Emits the most recently emitted item (if any) emitted by the source Stream since the previous emission within the recurring time span, defined byT> , provided by the SampleExtensions extensionduration -
scan<
S> (S accumulator(S accumulated, T value, int index), S seed) → Stream< S> -
Available on Stream<
Applies an accumulator function over a Stream sequence and returns each intermediate result. The seed value is used as the initial accumulator value.T> , provided by the ScanExtension extension -
select<
R> (R selector(ReadonlySignal< T> ), {bool? autoDispose = false, String? debugLabel}) → Computed<R> -
Available on ReadonlySignal<
Select a value and return a computed signal to listen for changesT> , provided by the ReadonlySignalUtils extension -
selectObserve<
S> (S selector(dynamic), Widget builder(S), {Key? key, void onInit(S value)?, Function? onValueUpdated, void onAfterBuild(S value)?, void onDispose(S value)?, bool shouldRebuild(S newValue, S oldValue)?, bool shouldNotify(S newValue, S oldValue)?, bool equals(S a, S b)?, Duration? debounce, Duration? throttle, void onError(Object error, StackTrace stack)?, Widget errorBuilder(Object error)?, Widget loadingBuilder()?, String? debugLabel, bool debugPrint = false}) → SignalsWatch< S> -
Available on ReadonlySignal<
Select a specific part of this signal's value and only rebuild when that part changes.T> , provided by the SignalObserveExtension extension -
Available on Stream<
Convert the current Stream into a new Stream that can be listened to multiple times. It will automatically begin emitting items when first listened to, and shut down when no listeners remain.T> , provided by the ConnectableStreamExtensions extension -
Available on Stream<
Convert the current Stream into a new ReplayStream that can be listened to multiple times. It will automatically begin emitting items when first listened to, and shut down when no listeners remain.T> , provided by the ConnectableStreamExtensions extension -
Available on Stream<
Convert the current Stream into a new ValueStream that can be listened to multiple times. It will automatically begin emitting items when first listened to, and shut down when no listeners remain.T> , provided by the ConnectableStreamExtensions extension -
Available on Stream<
Convert the current Stream into a new ValueStream that can be listened to multiple times, providing an initial value. It will automatically begin emitting items when first listened to, and shut down when no listeners remain.T> , provided by the ConnectableStreamExtensions extension -
singleWhere(
bool test(E element), {E orElse()?}) → E -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
singleWhere(
bool test(T element), {T orElse()?}) → Future< T> -
Finds the single element in this stream matching
test.override -
skip(
int count) → Stream< T> -
Skips the first
countdata events from this stream.override -
skip(
int count) → Iterable< E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
skipLast(
int count) → Stream< T> -
Available on Stream<
Starts emitting every items except lastT> , provided by the SkipLastExtension extensioncountitems. This causes items to be delayed. -
skipUntil<
S> (Stream< S> otherStream) → Stream<T> -
Available on Stream<
Starts emitting items only after the given stream emits an item.T> , provided by the SkipUntilExtension extension -
skipWhile(
bool test(E value)) → Iterable< E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
skipWhile(
bool test(T element)) → Stream< T> -
Skip data events from this stream while they are matched by
test.override -
sorted(
[int compare(E a, E b)?]) → List< E> -
Available on ReadonlySignal<
Return a new array that is sorted by theList< , provided by the ReadonlyListSignalExtension extensionE> >comparefunction -
split(
Pattern pattern) → List< String> -
Available on ReadonlySignal<
Splits the string at matches ofString> , provided by the StringSignalExtension extensionpatternand returns a list of substrings. -
splitMapJoin(
Pattern pattern, {String onMatch(Match)?, String onNonMatch(String)?}) → String -
Available on ReadonlySignal<
Splits the string, converts its parts, and combines them into a new string.String> , provided by the StringSignalExtension extension -
startsWith(
Pattern pattern, [int index = 0]) → bool -
Available on ReadonlySignal<
Whether this string starts with a match ofString> , provided by the StringSignalExtension extensionpattern. -
startWith(
T startValue) → Stream< T> -
Available on Stream<
Prepends a value to the source Stream.T> , provided by the StartWithExtension extension -
startWithMany(
List< T> startValues) → Stream<T> -
Available on Stream<
Prepends a sequence of values to the source Stream.T> , provided by the StartWithManyExtension extension -
sublist(
int start, [int? end]) → List< E> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
subscribe(
void fn(T value)) → void Function() -
Subscribe to value changes with a dispose function
inherited
-
substring(
int start, [int? end]) → String -
Available on ReadonlySignal<
The substring of this string fromString> , provided by the StringSignalExtension extensionstart, inclusive, toend, exclusive. -
switchIfEmpty(
Stream< T> fallbackStream) → Stream<T> -
Available on Stream<
When the original Stream emits no items, this operator subscribes to the given fallback stream and emits items from that Stream instead.T> , provided by the SwitchIfEmptyExtension extension -
switchMap<
S> (Stream< S> mapper(T value)) → Stream<S> -
Available on Stream<
Converts each emitted item into a Stream using the given mapper function. The newly created Stream will be be listened to and begin emitting items, and any previously created Stream will stop emitting.T> , provided by the SwitchMapExtension extension -
take(
int count) → Iterable< E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
take(
int count) → Stream< T> -
Provides at most the first
countdata events of this stream.override -
takeLast(
int count) → Stream< T> -
Available on Stream<
Emits only the finalT> , provided by the TakeLastExtension extensioncountvalues emitted by the source Stream. -
takeUntil<
S> (Stream< S> otherStream) → Stream<T> -
Available on Stream<
Returns the values from the source Stream sequence until the other Stream sequence produces a value.T> , provided by the TakeUntilExtension extension -
takeWhile(
bool test(E value)) → Iterable< E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
takeWhile(
bool test(T element)) → Stream< T> -
Forwards data events while
testis successful.override -
takeWhileInclusive(
bool test(T)) → Stream< T> -
Available on Stream<
Emits values emitted by the source Stream so long as each value satisfies the given test. When the test is not satisfied by a value, it will emit this value as a final event and then complete.T> , provided by the TakeWhileInclusiveExtension extension -
throttle(
Stream< void> window(T event), {bool trailing = false, bool leading = true}) → Stream<T> -
Available on Stream<
Emits a value from the source Stream, then ignores subsequent source values while the window Stream is open, then repeats this process.T> , provided by the ThrottleExtensions extension -
throttleTime(
Duration duration, {bool trailing = false, bool leading = true}) → Stream< T> -
Available on Stream<
Emits a value from the source Stream, then ignores subsequent source values for a duration, then repeats this process.T> , provided by the ThrottleExtensions extension -
timeInterval(
) → Stream< TimeInterval< T> > -
Available on Stream<
Records the time interval between consecutive values in a Stream sequence.T> , provided by the TimeIntervalExtension extension -
timeout(
Duration timeLimit, {void onTimeout(EventSink< T> sink)?}) → Stream<T> -
Creates a new stream with the same events as this stream.
override
-
timestamp(
) → Stream< Timestamped< T> > -
Available on Stream<
Wraps each item emitted by the source Stream in a Timestamped object that includes the emitted item and the time when the item was emitted.T> , provided by the TimeStampExtension extension -
toDouble(
) → double -
Available on ReadonlySignal<
This number as a double.num> , provided by the NumSignalExtension extension -
toInt(
) → int -
Available on ReadonlySignal<
Truncates this num to an integer and returns the result as an int.num> , provided by the NumSignalExtension extension -
toJson(
) → dynamic -
Convert value to JSON
inherited
-
toList(
{bool growable = true}) → List< E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
toList(
) → Future< List< T> > -
Collects all elements of this stream in a List.
override
-
toLowerCase(
) → String -
Available on ReadonlySignal<
Converts all characters in this string to lower case.String> , provided by the StringSignalExtension extension -
toRadixString(
int radix) → String -
Available on ReadonlySignal<
Converts this int to a string representation in the givenint> , provided by the IntSignalExtension extensionradix. -
toSet(
) → Set< E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
toSet(
) → Future< Set< T> > -
Collects the data of this stream in a Set.
override
-
toSigned(
int width) → int -
Available on ReadonlySignal<
Returns the least significantint> , provided by the IntSignalExtension extensionwidthbits of this integer, extending the highest retained bit to the sign. This is the same as truncating the value to fit inwidthbits using an signed 2-s complement representation. The returned value has the same bit value in all positions higher thanwidth. -
toStream(
) → Stream< T> -
Available on ReadonlySignal<
Convert a signal to a Stream to be consumed as a read only stream.T> , provided by the ReadonlySignalUtils extension -
toStreamSignal(
{bool? cancelOnError, String? debugLabel, T? initialValue, bool autoDispose = false, bool lazy = true, List< ReadonlySignal> dependencies = const [], void onDone()?}) → StreamSignal<T> -
Available on Stream<
Convert a stream to a signalT> , provided by the SignalStreamUtils extension -
toString(
) → String -
A string representation of this object.
inherited
-
toStringAsExponential(
[int? fractionDigits]) → String -
Available on ReadonlySignal<
An exponential string-representation of this number.num> , provided by the NumSignalExtension extension -
toStringAsFixed(
int fractionDigits) → String -
Available on ReadonlySignal<
A decimal-point string-representation of this number.num> , provided by the NumSignalExtension extension -
toStringAsPrecision(
int precision) → String -
Available on ReadonlySignal<
A string representation withnum> , provided by the NumSignalExtension extensionprecisionsignificant digits. -
toSyncSignal(
T initialData) → ReadonlySignal< T> -
Available on Stream<
Convert a Stream to ReadonlySignal and provide initial value.T> , provided by the SignalStreamUtils extension -
toUnsigned(
int width) → int -
Available on ReadonlySignal<
Returns the least significantint> , provided by the IntSignalExtension extensionwidthbits of this integer as a non-negative number (i.e. unsigned representation). The returned value has zeros in all bit positions higher thanwidth. -
toUpperCase(
) → String -
Available on ReadonlySignal<
Converts all characters in this string to upper case.String> , provided by the StringSignalExtension extension -
transform<
R> (R transform(T), {Key? key, required Widget builder(R), void onInit(R value)?, Function? onValueUpdated, void onAfterBuild(R value)?, void onDispose(R value)?, bool shouldRebuild(R newValue, R oldValue)?, bool shouldNotify(R newValue, R oldValue)?, bool equals(R a, R b)?, Duration? debounce, Duration? throttle, void onError(Object error, StackTrace stack)?, Widget errorBuilder(Object error)?, Widget loadingBuilder()?, String? debugLabel, bool debugPrint = false}) → SignalsWatch< R> -
Available on ReadonlySignal<
Transform this signal's value and observe the result with error handling.T> , provided by the SignalObserveExtension extension -
transform<
S> (StreamTransformer< T, S> streamTransformer) → Stream<S> -
Applies
streamTransformerto this stream.override -
trim(
) → String -
Available on ReadonlySignal<
The string without any leading and trailing whitespace.String> , provided by the StringSignalExtension extension -
trimLeft(
) → String -
Available on ReadonlySignal<
The string without any leading whitespace.String> , provided by the StringSignalExtension extension -
trimRight(
) → String -
Available on ReadonlySignal<
The string without any trailing whitespace.String> , provided by the StringSignalExtension extension -
truncate(
) → int -
Available on ReadonlySignal<
Returns the integer obtained by discarding any fractional part of this number.double> , provided by the DoubleSignalExtension extension -
truncate(
) → int -
Available on ReadonlySignal<
Returnsint> , provided by the IntSignalExtension extensionthis. -
truncate(
) → int -
Available on ReadonlySignal<
The integer obtained by discarding any fractional digits fromnum> , provided by the NumSignalExtension extensionthis. -
truncateToDouble(
) → double -
Available on ReadonlySignal<
Returnsint> , provided by the IntSignalExtension extensionthis.toDouble(). -
truncateToDouble(
) → double -
Available on ReadonlySignal<
Returns the double integer value obtained by discarding any fractional digits from the double value ofnum> , provided by the NumSignalExtension extensionthis. -
truncateToDouble(
) → double -
Available on ReadonlySignal<
Returns the integer double value obtained by discarding any fractional digits fromdouble> , provided by the DoubleSignalExtension extensionthis. -
union(
Set< E> other) → Set<E> -
Available on ReadonlySignal<
Set< , provided by the ReadonlySetSignalExtension extensionE> > -
unwatch(
BuildContext context) → void -
Available on ReadonlySignal<
Stop subscriptions to updates on a signal for watchersT> , provided by the FlutterReadonlySignalUtils extension -
watch(
BuildContext context, {String? debugLabel}) → T -
Available on ReadonlySignal<
Rebuild the Element that the current signal is inside ofT> , provided by the FlutterReadonlySignalUtils extension -
where(
bool test(E element)) → Iterable< E> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
where(
bool test(T event)) → Stream< T> -
Creates a new stream from this stream that discards some elements.
override
-
whereNotNull(
) → Stream< T> -
Available on Stream<
Returns a Stream which emits all the non-T?> , provided by the WhereNotNullExtension extensionnullelements of this Stream, in their original emission order. -
whereType<
R> () → Iterable< R> -
Available on ReadonlySignal<
Iterable< , provided by the ReadonlyIterableSignalExtension extensionE> > -
whereType<
S> () → Stream< S> -
Available on Stream<
This transformer is a shorthand for Stream.where followed by Stream.cast.T> , provided by the WhereTypeExtension extension -
window(
Duration windowDuration) → Stream< List< T> > -
Available on Stream<
Buffers events into time-based windows defined byT> , provided by the StreamTransformations extensionwindowDuration. -
window(
Stream< void> window) → Stream<Stream< T> > -
Available on Stream<
Creates a Stream where each item is a Stream containing the items from the source sequence.T> , provided by the WindowExtensions extension -
windowCount(
int count, [int startBufferEvery = 0]) → Stream< Stream< T> > -
Available on Stream<
Buffers a number of values from the source Stream byT> , provided by the WindowExtensions extensioncountthen emits the buffer as a Stream and clears it, and starts a new buffer eachstartBufferEveryvalues. IfstartBufferEveryis not provided, then new buffers are started immediately at the start of the source and when each buffer closes and is emitted. -
windowTest(
bool onTestHandler(T event)) → Stream< Stream< T> > -
Available on Stream<
Creates a Stream where each item is a Stream containing the items from the source sequence, batched whenever test passes.T> , provided by the WindowExtensions extension -
windowTime(
Duration duration) → Stream< Stream< T> > -
Available on Stream<
Creates a Stream where each item is a Stream containing the items from the source sequence, sampled on a time frame withT> , provided by the WindowExtensions extensionduration. -
withLatestFrom<
S, R> (Stream< S> latestFromStream, R fn(T t, S s)) → Stream<R> -
Available on Stream<
Creates a Stream that emits when the source stream emits, combining the latest values from the two streams using the provided function.T> , provided by the WithLatestFromExtensions extension -
withLatestFrom2<
A, B, R> (Stream< A> latestFromStream1, Stream<B> latestFromStream2, R fn(T t, A a, B b)) → Stream<R> -
Available on Stream<
Creates a Stream that emits when the source stream emits, combining the latest values from the three streams using the provided function.T> , provided by the WithLatestFromExtensions extension -
withLatestFrom3<
A, B, C, R> (Stream< A> latestFromStream1, Stream<B> latestFromStream2, Stream<C> latestFromStream3, R fn(T t, A a, B b, C c)) → Stream<R> -
Available on Stream<
Creates a Stream that emits when the source stream emits, combining the latest values from the four streams using the provided function.T> , provided by the WithLatestFromExtensions extension -
withLatestFrom4<
A, B, C, D, R> (Stream< A> latestFromStream1, Stream<B> latestFromStream2, Stream<C> latestFromStream3, Stream<D> latestFromStream4, R fn(T t, A a, B b, C c, D d)) → Stream<R> -
Available on Stream<
Creates a Stream that emits when the source stream emits, combining the latest values from the five streams using the provided function.T> , provided by the WithLatestFromExtensions extension -
withLatestFrom5<
A, B, C, D, E, R> (Stream< A> latestFromStream1, Stream<B> latestFromStream2, Stream<C> latestFromStream3, Stream<D> latestFromStream4, Stream<E> latestFromStream5, R fn(T t, A a, B b, C c, D d, E e)) → Stream<R> -
Available on Stream<
Creates a Stream that emits when the source stream emits, combining the latest values from the six streams using the provided function.T> , provided by the WithLatestFromExtensions extension -
withLatestFrom6<
A, B, C, D, E, F, R> (Stream< A> latestFromStream1, Stream<B> latestFromStream2, Stream<C> latestFromStream3, Stream<D> latestFromStream4, Stream<E> latestFromStream5, Stream<F> latestFromStream6, R fn(T t, A a, B b, C c, D d, E e, F f)) → Stream<R> -
Available on Stream<
Creates a Stream that emits when the source stream emits, combining the latest values from the seven streams using the provided function.T> , provided by the WithLatestFromExtensions extension -
withLatestFrom7<
A, B, C, D, E, F, G, R> (Stream< A> latestFromStream1, Stream<B> latestFromStream2, Stream<C> latestFromStream3, Stream<D> latestFromStream4, Stream<E> latestFromStream5, Stream<F> latestFromStream6, Stream<G> latestFromStream7, R fn(T t, A a, B b, C c, D d, E e, F f, G g)) → Stream<R> -
Available on Stream<
Creates a Stream that emits when the source stream emits, combining the latest values from the eight streams using the provided function.T> , provided by the WithLatestFromExtensions extension -
withLatestFrom8<
A, B, C, D, E, F, G, H, R> (Stream< A> latestFromStream1, Stream<B> latestFromStream2, Stream<C> latestFromStream3, Stream<D> latestFromStream4, Stream<E> latestFromStream5, Stream<F> latestFromStream6, Stream<G> latestFromStream7, Stream<H> latestFromStream8, R fn(T t, A a, B b, C c, D d, E e, F f, G g, H h)) → Stream<R> -
Available on Stream<
Creates a Stream that emits when the source stream emits, combining the latest values from the nine streams using the provided function.T> , provided by the WithLatestFromExtensions extension -
withLatestFrom9<
A, B, C, D, E, F, G, H, I, R> (Stream< A> latestFromStream1, Stream<B> latestFromStream2, Stream<C> latestFromStream3, Stream<D> latestFromStream4, Stream<E> latestFromStream5, Stream<F> latestFromStream6, Stream<G> latestFromStream7, Stream<H> latestFromStream8, Stream<I> latestFromStream9, R fn(T t, A a, B b, C c, D d, E e, F f, G g, H h, I i)) → Stream<R> -
Available on Stream<
Creates a Stream that emits when the source stream emits, combining the latest values from the ten streams using the provided function.T> , provided by the WithLatestFromExtensions extension -
withLatestFromList(
Iterable< Stream< latestFromStreams) → Stream<T> >List< T> > -
Available on Stream<
Creates a Stream that emits when the source stream emits, combining the latest values from the streams into a list. This is helpful when you need to combine a dynamic number of Streams.T> , provided by the WithLatestFromExtensions extension -
withLatestValue(
) → Stream< T> -
Available on Stream<
Returns a stream that replays the latest emitted value to new subscribers.T> , provided by the StreamTransformations extension -
zipWith<
S, R> (Stream< S> other, R zipper(T t, S s)) → Stream<R> -
Available on Stream<
Returns a Stream that combines the current stream together with another stream using a given zipper function.T> , provided by the ZipWithExtension extension
Operators
-
operator %(
num other) → num -
Available on ReadonlySignal<
Euclidean modulo of this number bynum> , provided by the NumSignalExtension extensionother. -
operator %(
num other) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
operator &(
bool other) → bool -
Available on ReadonlySignal<
The logical conjunction ("and") of this andbool> , provided by the BoolSignalExtension extensionother. -
operator &(
int other) → int -
Available on ReadonlySignal<
Bit-wise and operator.int> , provided by the IntSignalExtension extension -
operator *(
num other) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
operator *(
int times) → String -
Available on ReadonlySignal<
Creates a new string by concatenating this string with itself a number of times.String> , provided by the StringSignalExtension extension -
operator *(
num other) → num -
Available on ReadonlySignal<
Multiplies this number bynum> , provided by the NumSignalExtension extensionother. -
operator +(
String other) → String -
Available on ReadonlySignal<
Creates a new string by concatenating this string withString> , provided by the StringSignalExtension extensionother. -
operator +(
List< E> other) → List<E> -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
operator +(
num other) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
operator +(
num other) → num -
Available on ReadonlySignal<
Addsnum> , provided by the NumSignalExtension extensionotherto this number. -
operator -(
num other) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
operator -(
num other) → num -
Available on ReadonlySignal<
Subtractsnum> , provided by the NumSignalExtension extensionotherfrom this number. -
operator /(
num other) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
operator /(
num other) → double -
Available on ReadonlySignal<
Divides this number bynum> , provided by the NumSignalExtension extensionother. -
operator <(
num other) → bool -
Available on ReadonlySignal<
Whether this number is numerically smaller thannum> , provided by the NumSignalExtension extensionother. -
operator <<(
int shiftAmount) → int -
Available on ReadonlySignal<
Shift the bits of this integer to the left byint> , provided by the IntSignalExtension extensionshiftAmount. -
operator <=(
num other) → bool -
Available on ReadonlySignal<
Whether this number is numerically smaller than or equal tonum> , provided by the NumSignalExtension extensionother. -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >(
num other) → bool -
Available on ReadonlySignal<
Whether this number is numerically greater thannum> , provided by the NumSignalExtension extensionother. -
operator >=(
num other) → bool -
Available on ReadonlySignal<
Whether this number is numerically greater than or equal tonum> , provided by the NumSignalExtension extensionother. -
operator >>(
int shiftAmount) → int -
Available on ReadonlySignal<
Shift the bits of this integer to the right byint> , provided by the IntSignalExtension extensionshiftAmount. -
operator >>>(
int shiftAmount) → int -
Available on ReadonlySignal<
Bitwise unsigned right shift byint> , provided by the IntSignalExtension extensionshiftAmountbits. -
operator [](
int index) → E -
Available on ReadonlySignal<
List< , provided by the ReadonlyListSignalExtension extensionE> > -
operator [](
Object? key) → V? -
Available on ReadonlySignal<
Map< , provided by the ReadonlyMapSignalExtension extensionK, V> > -
operator [](
int index) → String -
Available on ReadonlySignal<
The character (as a single-code-unit String) at the givenString> , provided by the StringSignalExtension extensionindex. -
operator ^(
int other) → int -
Available on ReadonlySignal<
Bit-wise exclusive-or operator.int> , provided by the IntSignalExtension extension -
operator ^(
bool other) → bool -
Available on ReadonlySignal<
The logical exclusive disjunction ("exclusive or") of this andbool> , provided by the BoolSignalExtension extensionother. -
operator unary-(
) → num -
Available on ReadonlySignal<
The negation of this value.num> , provided by the NumSignalExtension extension -
operator unary-(
) → double -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension -
operator unary-(
) → int -
Available on ReadonlySignal<
Return the negative value of this integer.int> , provided by the IntSignalExtension extension -
operator |(
int other) → int -
Available on ReadonlySignal<
Bit-wise or operator.int> , provided by the IntSignalExtension extension -
operator |(
bool other) → bool -
Available on ReadonlySignal<
The logical disjunction ("inclusive or") of this andbool> , provided by the BoolSignalExtension extensionother. -
operator ~(
) → int -
Available on ReadonlySignal<
The bit-wise negate operator.int> , provided by the IntSignalExtension extension -
operator ~/(
num other) → int -
Available on ReadonlySignal<
Truncating division operator.num> , provided by the NumSignalExtension extension -
operator ~/(
num other) → int -
Available on ReadonlySignal<
double> , provided by the DoubleSignalExtension extension