SyncStream<T> class

The SyncStream is used to control (and potentially debounce) updates to a single value, that are then dispatched as a single stream of updates

Implemented types
Mixed in types
Available Extensions

Constructors

SyncStream.controller({FutureOr<T>? initialValue, required String debugName, Consumer<T>? onChange})
This stream doesn't subscribe to an upstream branch for updates, but can still be updated.
SyncStream.empty()
SyncStream.fromStream(Stream<T> after, [T? current, Consumer<T>? onChange, String? debugName])
SyncStream.fromVStream(ValueStream<T> source, [Consumer<T>? onChange, String? debugName])

Properties

after Stream<T?>
no setteroverride
current ↔ T?
getter/setter pair
debugName String?
final
future Future<T?>
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isFirstResolved bool
no setteroverride
log → Logger
final
loggerName String?
no setter
onChange Consumer<T>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future
disposeAll() Future
inherited
forward(Stream<T> from) → void
Forwards a stream to this one
get() FutureOr<T>?
override
map<R>(R mapper(T? input)) ValueStream<R>
Basics of converting something over
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerDisposer(Disposer callback) → void
inherited
registerStream(Stream? stream) → void
inherited
registerSubscription(StreamSubscription? subscription) → void
inherited
removeDisposer(FutureOr dispose()) → void
inherited
reset() → void
resolve([T? ifAbsent]) → T?
override
toString() String
A string representation of this object.
inherited
toVStream() ValueStream<T?>
update(T? current) → void
Like StreamController.add

Operators

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