StreamNotification<T>.error constructor

StreamNotification<T>.error(
  1. Object error, [
  2. StackTrace? stackTrace
])

Constructs a StreamNotification with NotificationKind.error and wraps an error and stackTrace

Implementation

factory StreamNotification.error(Object error, [StackTrace? stackTrace]) =>
    ErrorNotification._internal(error, stackTrace);