onResponse method
Future<Response>
onResponse(
- Response response,
- Request request,
- Future<
Response> retry(- Request
Called for each Response that comes back from the network.
The retry callback re-executes the downstream link chain
with the given request — use it to replay a request after
refreshing a token or updating headers.
Implementation
Future<Response> onResponse(
Response response,
Request request,
Future<Response> Function(Request) retry,
) async => response;