APIRequest.clone constructor
APIRequest.clone(
- APIRequest request
Clone specified request
Each request instance can be resolved only once. If you will pass it to the same API instance more than once it will redirect your request to the existing result (or existing pending result).
If you use the same APIRequest instance with different API instances behavior is unspecified
Implementation
factory APIRequest.clone(APIRequest request) => APIRequest(request.method,
methodId: request.methodId,
data: request._originalData,
headers: request._originalHeaders,
httpMethod: request.httpMethod,
settings: request.settings,
useAuth: request.useAuth);