StreamSubscriber<T> class abstract

Defines the expected type for a receiver of results streamed by the server.

T The type of the items being sent by the server.

Constructors

StreamSubscriber({void onnext(T value)?, void onerror(dynamic error)?, void oncomplete()?})
factory

Properties

closed bool?
A boolean that will be set by the Stream when the stream is closed.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

complete() → void
Called by the framework when the end of the stream is reached.
error(Object error) → void
Called by the framework when an error has occurred.
next(T value) → void
Called by the framework when a new item is available.
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