defaultErrorHandlers property
set
defaultErrorHandlers
(Map<Type, ErrorHandlerCallback> handlers)
Sets a default set of Error Handlers which is preferable scenarios like:
- One time declaration for usage thorough the app
- A fallback handler for a generic error type
Implementation
static set defaultErrorHandlers(Map<Type, ErrorHandlerCallback<dynamic>> handlers,) =>
_defaultErrorHandlers = handlers;