transformRequest property
TransformRequest?
transformRequest
final
Enables transformation of network request before execution.
This function will give you the request object as the param and expect an updated request in return, for execution.
For example, we will add the credentials
property in the request using transformRequest
.
Future (Map request) =>
Future.value({
...request,
'credentials': 'include',
})
}
Implementation
final TransformRequest? transformRequest;