onError method

void onError(
  1. Object error,
  2. StackTrace trace
)

Implementation

void onError(Object error, StackTrace trace) {
  (_onError ?? _defaultOnError)(error, trace);
}