transformRequest method
transformRequest allows changes to the request data before it is
sent to the server, but after the RequestInterceptor
.
This is only applicable for request methods 'PUT', 'POST', and 'PATCH'
Implementation
@override
Future<String> transformRequest(RequestOptions options) async {
return Transformer.defaultTransformRequest(options, jsonEncodeCallback);
}