ErrorParser typedef

ErrorParser = Map<String, dynamic>? Function(Object error)

Parses an error to a map. This is used by the tracing page to display the error in a human-readable format. This is also used by the RefenaInspectorObserver to to send the error to the inspector.

Return null to fallback to the default error parser provided by Refena. See parseErrorDefault for the default error parser.

Implementation

typedef ErrorParser = Map<String, dynamic>? Function(Object error);