download<T> abstract method

Future<Result<T>> download<T>(
  1. String urlPath,
  2. dynamic savePath, {
  3. dynamic data,
  4. Map<String, dynamic>? queryParameters,
  5. RestApiClientRequestOptions? options,
  6. ProgressCallback? onReceiveProgress,
  7. CancelToken? cancelToken,
  8. bool deleteOnError = true,
  9. String lengthHeader = Headers.contentLengthHeader,
  10. FutureOr<T> onSuccess(
    1. dynamic data
    )?,
  11. FutureOr<T> onError(
    1. dynamic data
    )?,
})

Implementation

Future<Result<T>> download<T>(
  String urlPath,
  savePath, {
  data,
  Map<String, dynamic>? queryParameters,
  RestApiClientRequestOptions? options,
  ProgressCallback? onReceiveProgress,
  CancelToken? cancelToken,
  bool deleteOnError = true,
  String lengthHeader = Headers.contentLengthHeader,
  FutureOr<T> Function(dynamic data)? onSuccess,
  FutureOr<T> Function(dynamic data)? onError,
});