onResponse method

  1. @override
FutureOr onResponse(
  1. Response response,
  2. ResponseInterceptorHandler handler
)

The callback will be executed on success.

Implementation

@override
FutureOr<dynamic> onResponse(
  Response response,
  ResponseInterceptorHandler handler,
) {
  loggy.debug('\nRESPONSE:\n${response.data}');

  super.onResponse(response, handler);
}