addError method
Sends or enqueues an error event.
Implementation
void addError(Object error, [StackTrace? stackTrace]) {
_controller.addError(error, stackTrace);
_latestSnapshot = EventSnapshot.withError(error, stackTrace);
}
Sends or enqueues an error event.
void addError(Object error, [StackTrace? stackTrace]) {
_controller.addError(error, stackTrace);
_latestSnapshot = EventSnapshot.withError(error, stackTrace);
}