VendorDictionaryEntriesStream<V> class abstract final

Stream based DictionaryEntry collection that each listeners will be isolated when listen.

The mechnism of VendorDictionaryEntriesStream is offers new instances of single StreamSubscription for listeners that they can only process on their own subscription without interferences. However, when it converted to another stream events (e.g. cast, map, where and more), it will returns original implementation of Stream, which is forbidden for subscribe more than one listeners. As a result, although it is identical with broadcast Stream, it cannot be categorized as broadcast stream and any attempted to convert it into broadcast stream by asBroadcastStream is forbidden.

DictionaryEntry will yield as the same behaviour in Map, which refers to latest assigned value with associated key only. However, due to concurrency process, it does not gurantte the order of entries.

Implemented types
Implementers

Constructors

VendorDictionaryEntriesStream(EntriesStreamGenerator<V> generator)
Create an instant, ready-to-use VendorDictionaryEntriesStream with directly apply generator, which stream DictionaryEntry in Record form.
factory

Properties

first Future<DictionaryEntry<V>>
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<DictionaryEntry<V>>
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<DictionaryEntry<V>>
The single element of this stream.
no setterinherited

Methods

any(bool test(DictionaryEntry<V> element)) Future<bool>
Checks whether test accepts any element provided by this stream.
inherited
asBroadcastStream({void onListen(StreamSubscription<DictionaryEntry<V>> subscription)?, void onCancel(StreamSubscription<DictionaryEntry<V>> subscription)?}) Stream<DictionaryEntry<V>>
Converting VendorDictionaryEntriesStream to broadcast Stream is forbidden. It throws UnsupportedError once it called.
override
asyncExpand<E>(Stream<E>? convert(DictionaryEntry<V> event)) Stream<E>
Transforms each element into a sequence of asynchronous events.
inherited
asyncMap<E>(FutureOr<E> convert(DictionaryEntry<V> event)) Stream<E>
Creates a new stream with each data event of this stream asynchronously mapped to a new event.
inherited
cast<R>() Stream<R>
Adapt this stream to be a Stream<R>.
inherited
contains(Object? needle) Future<bool>
Returns whether needle occurs in the elements provided by this stream.
inherited
distinct([bool equals(DictionaryEntry<V> previous, DictionaryEntry<V> next)?]) Stream<DictionaryEntry<V>>
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<DictionaryEntry<V>>
Returns the value of the indexth data event of this stream.
inherited
every(bool test(DictionaryEntry<V> element)) Future<bool>
Checks whether test accepts all elements provided by this stream.
inherited
expand<S>(Iterable<S> convert(DictionaryEntry<V> element)) Stream<S>
Transforms each element of this stream into a sequence of elements.
inherited
firstWhere(bool test(DictionaryEntry<V> element), {DictionaryEntry<V> orElse()?}) Future<DictionaryEntry<V>>
Finds the first element of this stream matching test.
inherited
fold<S>(S initialValue, S combine(S previous, DictionaryEntry<V> element)) Future<S>
Combines a sequence of values by repeatedly applying combine.
inherited
forEach(void action(DictionaryEntry<V> element)) Future<void>
Executes action on each element of this stream.
inherited
generateContent(DictionaryEntryStreamAdder<V> add, DictionaryEntryStreamThrower addError) Future<void>
Process when listen called and prepare to generate content to StreamSubscription.
handleError(Function onError, {bool test(dynamic error)?}) Stream<DictionaryEntry<V>>
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(DictionaryEntry<V> element), {DictionaryEntry<V> orElse()?}) Future<DictionaryEntry<V>>
Finds the last element in this stream matching test.
inherited
listen(void onData(DictionaryEntry<V> event)?, {Function? onError, void onDone()?, bool? cancelOnError}) StreamSubscription<DictionaryEntry<V>>
Adds a subscription to this stream.
inherited
map<S>(S convert(DictionaryEntry<V> event)) Stream<S>
Transforms each element of this stream into a new stream event.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pipe(StreamConsumer<DictionaryEntry<V>> streamConsumer) Future
Pipes the events of this stream into streamConsumer.
inherited
reduce(DictionaryEntry<V> combine(DictionaryEntry<V> previous, DictionaryEntry<V> element)) Future<DictionaryEntry<V>>
Combines a sequence of values by repeatedly applying combine.
inherited
singleWhere(bool test(DictionaryEntry<V> element), {DictionaryEntry<V> orElse()?}) Future<DictionaryEntry<V>>
Finds the single element in this stream matching test.
inherited
skip(int count) Stream<DictionaryEntry<V>>
Skips the first count data events from this stream.
inherited
skipWhile(bool test(DictionaryEntry<V> element)) Stream<DictionaryEntry<V>>
Skip data events from this stream while they are matched by test.
inherited
take(int count) Stream<DictionaryEntry<V>>
Provides at most the first count data events of this stream.
inherited
takeWhile(bool test(DictionaryEntry<V> element)) Stream<DictionaryEntry<V>>
Forwards data events while test is successful.
inherited
timeout(Duration timeLimit, {void onTimeout(EventSink<DictionaryEntry<V>> sink)?}) Stream<DictionaryEntry<V>>
Creates a new stream with the same events as this stream.
inherited
toList() Future<List<DictionaryEntry<V>>>
Collects all elements of this stream in a List.
inherited
toSet() Future<Set<DictionaryEntry<V>>>
Collects the data of this stream in a Set.
inherited
toString() String
A string representation of this object.
inherited
transform<S>(StreamTransformer<DictionaryEntry<V>, S> streamTransformer) Stream<S>
Applies streamTransformer to this stream.
inherited
where(bool test(DictionaryEntry<V> event)) Stream<DictionaryEntry<V>>
Creates a new stream from this stream that discards some elements.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited