)
Send or enqueue an error event.
If error
is null
, it is replaced by a NullThrownError.
Also allows an objection stack trace object, on top of what EventSink allows.
Source
/**
* Send or enqueue an error event.
*
* If [error] is `null`, it is replaced by a [NullThrownError].
*
* Also allows an objection stack trace object, on top of what [EventSink]
* allows.
*/
void addError(Object error, [StackTrace stackTrace]);