Notification<T>.onError constructor

Notification<T>.onError(
  1. dynamic error,
  2. StackTrace stackTrace
)

Constructs a Notification with Kind.OnError and wraps an error and stackTrace

Implementation

factory Notification.onError(dynamic error, StackTrace stackTrace) =>
    Notification<T>(Kind.OnError, null, error, stackTrace);