download abstract method

Future<HttpResponse> download(
  1. String endpoint,
  2. String pathToSave, {
  3. bool authenticate = false,
  4. Object? body,
  5. Map<String, String>? headers,
  6. Map<String, dynamic>? queryParameters,
  7. String? replaceBaseUrl,
  8. String? segment,
  9. bool? showLogs,
  10. String? step,
})

Method that represents the HTTP's GET method to download a file.

Implementation

Future<HttpResponse> download(
  String endpoint,
  String pathToSave, {
  bool authenticate = false,
  Object? body,
  Map<String, String>? headers,
  Map<String, dynamic>? queryParameters,
  String? replaceBaseUrl,
  String? segment,
  bool? showLogs,
  String? step,
});