Notification<T> constructor

Notification<T>(
  1. Kind kind,
  2. T value,
  3. dynamic error,
  4. StackTrace stackTrace
)

Constructs a Notification which, depending on the kind, wraps either value, or error and stackTrace, or neither if it is just a Kind.OnData event.

Implementation

Notification(this.kind, this.value, this.error, this.stackTrace);