SubSink class
A class that manages a list of StreamSubscription
objects.
The SubSink
class provides a way to add, set, and cancel StreamSubscription
objects.
Constructors
- SubSink()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → dynamic
-
The number of
StreamSubscription
objects in the list managed by thisSubSink
.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sink ← StreamSubscription
-
Sets the
StreamSubscription
object for thisSubSink
. This is equivalent to callingadd
with the givensub
parameter.no getter
Methods
-
add(
StreamSubscription sub) → void -
Adds a
StreamSubscription
object to the list managed by thisSubSink
. -
cancel(
) → void -
Cancels all the
StreamSubscription
objects in the list managed by thisSubSink
. -
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