onHandle method Null safety
- T data
Executed every time a Request or a Response should pass in this Middleware
If you are in a request middleware and you don't want to pass the request to the endpoint, then throw a Response error.
throw Response(...);
Do not call this function on purpose.
Implementation
Future<T> onHandle(final T data);