WhaleCurrent<T> class
WhaleCurrent: A wrapper around Dart's Stream and StreamController for managing asynchronous data flows, with reactive capabilities.
- Implemented types
Constructors
- WhaleCurrent()
- Creates a single-subscription WhaleCurrent.
- WhaleCurrent.broadcast()
- Creates a broadcast (multiple-subscription) WhaleCurrent.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListener → bool
-
no setter
- isBroadcast → bool
-
no setter
- isClosed → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
T> -
The underlying stream.
no setter
Methods
-
add(
T event) → void - Adds an event to the stream.
-
addError(
Object error, [StackTrace? stackTrace]) → void - Adds an error event to the stream.
-
dispose(
) → void -
Closes the stream. No more events can be added.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited