Notification<T> class

A class that encapsulates the Kind of event, value of the event in case of onData, or the Error in the case of onError. A container object that wraps the Kind 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 Notification.

Constructors

Notification(Kind kind, T value, dynamic error, StackTrace stackTrace)
Notification.onData(T value)
factory
Notification.onDone()
factory
Notification.onError(dynamic e, StackTrace s)
factory

Properties

error → dynamic
final
hashCode → int
The hash code for this object. [...]
read-only
isOnData → bool
read-only
isOnDone → bool
read-only
isOnError → bool
read-only
kind Kind
final
stackTrace → StackTrace
final
value → T
final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited

Operators

operator ==(Object other) → bool
The equality operator. [...]