getResponse abstract method

Future<Response> getResponse({
  1. required ApiRequestType requestType,
  2. required String url,
  3. required Map<String, String> headersForApiRequest,
  4. ApiBodyType bodyType = ApiBodyType.json,
  5. Object? body,
  6. required Duration timeout,
  7. Map<String, String>? query,
  8. required bool persistCookies,
  9. void uploadPercentage(
    1. int
    )?,
  10. bool validateStatus(
    1. int
    )?,
  11. void downloadProgress(
    1. int,
    2. int,
    3. int
    )?,
  12. required Client httpClient,
  13. CancelToken? cancelToken,
})

Implementation

Future<http.Response> getResponse({
  required ApiRequestType requestType,
  required String url,
  required Map<String, String> headersForApiRequest,
  ApiBodyType bodyType = ApiBodyType.json,
  Object? body,
  required Duration timeout,
  Map<String, String>? query,
  required bool persistCookies,
  void Function(int)? uploadPercentage,
  bool Function(int)? validateStatus,
  void Function(int, int, int)? downloadProgress,
  required http.Client httpClient,
  CancelToken? cancelToken,
});