criticalErrorHandler property

(void Function<S>(S, T?)?) criticalErrorHandler
getter/setter pair

The default error handler function for critical errors.

If set, the function is used as the default handler that is called from scope() if onCriticalError is omitted.

The result and error (if any) of the process done in scope() are passed in, which are of type S and T? respectively.

Implementation

void Function<S>(S, T?)? criticalErrorHandler;