SyncStream<T> class Null safety

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?>
read-only, override
current ↔ T?
read / write
debugName String?
final
future Future<T?>
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
isFirstResolved bool
read-only, override
log Logger
final
loggerName String?
read-only
onChange Consumer<T>?
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent 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