notifyError method Null safety

void notifyError(
  1. ErrorEvent event
)

Inform the bound EmpireState that an error has occurred.

Any event handlers registered by the addOnErrorEventListener function will be executed

Implementation

void notifyError(ErrorEvent event) {
  if (_errorController.isClosed) {
    return;
  }

  _errorController.add(event);
}