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