StreamSubscriberBase mixin
Base class which can be used as a mixin directly, but you have to call cancelSubscriptions
.
If used inside a State, use StreamSubscriberMixin.
- Mixin Applications
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelSubscriptions(
) → void - Cancels all streams that were previously added with listen().
-
handle(
StreamSubscription subscription) → void -
listen(
Stream stream, void onData(dynamic data), {Function? onError}) → void - Listens to a stream and saves it to the list of subscriptions.
-
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