Notification<T> constructor

const Notification<T>(
  1. Kind kind,
  2. Object? _value,
  3. 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);