Notification<T> constructor
const
Notification<T> (
- Kind kind,
- Object? _value,
- ErrorAndStackTrace? errorAndStackTrace
Constructs a Notification which, depending on the kind
, wraps either
value
, or errorAndStackTrace
, or neither if it is just a
Kind.onData event.
Implementation
const Notification(this.kind, this._value, this.errorAndStackTrace);