onResponse method

Future<FittorResponse> onResponse(
  1. FittorResponse response
)

Called after a successful response is received

Can modify the response or return a completely new response. The returned response will be passed to the next interceptor or returned to the caller.

response The received response Returns the response to be processed (can be modified or replaced)

Implementation

Future<FittorResponse> onResponse(FittorResponse response) async => response;