StreamNotification<T> class abstract

A class that encapsulates the NotificationKind of event, value of the event in case of onData, or the Error in the case of onError. A container object that wraps the NotificationKind of event (OnData, OnDone, OnError), and the item or error that was emitted. In the case of onDone, no data is emitted as part of the StreamNotification.

Implementers
Available extensions

Constructors

StreamNotification.data(T value)
Constructs a StreamNotification with NotificationKind.data and wraps a value
factory
StreamNotification.done()
Constructs a StreamNotification with NotificationKind.done.
const
factory
StreamNotification.error(Object error, [StackTrace? stackTrace])
Constructs a StreamNotification with NotificationKind.error and wraps an error and stackTrace
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
kind NotificationKind
References the NotificationKind of this StreamNotification event.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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