BloomStreamSignal<T> class

A reactive signal bound to a real-time stream subscription with explicit lifecycle disposal.

Example:

final streamSignal = client.signalFromStream(
  stream: myStream,
  initialValue: 0,
);

Constructors

BloomStreamSignal({required Signal<T> signal, required StreamSubscription<T> subscription})
Creates a BloomStreamSignal wrapping signal and subscription.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signal Signal<T>
The underlying reactive Signal.
final
subscription StreamSubscription<T>
Active stream subscription feeding data into signal.
final
value ↔ T
Current value held by the underlying signal.
getter/setter pair

Methods

dispose() Future<void>
Cancels the stream subscription and releases resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readonly() ReadonlySignal<T>
Returns a read-only view of the underlying signal.
toString() String
A string representation of this object.
inherited

Operators

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