onErrorMiddleware property

List<OnError> onErrorMiddleware
getter/setter pair

Add a callback function here to do whatever you want with the error information. You can add multiple or remove if you need to.

Implementation

static List<OnError> onErrorMiddleware = [];