onError method

dynamic onError (
  1. Object error,
  2. StackTrace stackTrace
)

Implementation

onError(Object error, StackTrace stackTrace) {
  final handler = _handlers[error.runtimeType.toString()];

  if (handler != null) {
    handler.handle(error, stackTrace);

    return true;
  }

  return false;
}