MiniStream<T> class
A mini stream implementation.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Checks if there are any active listeners for the stream.
no setter
- isClosed → bool
-
check stream is close or not
no setter
- length → int
-
Retrieves the length of the stream.
no setter
-
listenable
↔ FastList<
T> -
The list of listeners.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ T
-
Getter for the current value of the stream.
getter/setter pair
Methods
-
add(
T event) → void - Adds an event to the stream.
-
addError(
Object error, [StackTrace? stackTrace]) → void - Adds an error to the stream.
-
close(
) → void - Closes the stream.
-
listen(
void onData(T event), {Function? onError, void onDone()?, bool cancelOnError = false}) → MiniSubscription< T> - Listens for events on the stream.
-
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