catchError method

void catchError(
  1. Object ex
)

Catch and explicitly handle the error.

Implementation

void catchError(Object ex) {
  if (ex is! Exception) {
    ex = Exception(ex.toString());
  }
  appState?.catchError(ex);
}