FlintClientFileSaver extension

on

Methods

saveFile(FlintResponse response, String path) Future<File?>

Available on FlintClient, provided by the FlintClientFileSaver extension

Saves a FlintResponse containing a file or bytes to path. Returns the saved File or null if the response is not a file.
saveResponseData(FlintResponse response, String path) Future<File>

Available on FlintClient, provided by the FlintClientFileSaver extension

Saves response data to path. Supports File, List<int>, String, Map, and List.
uploadFile<T>(String path, {required File file, String fieldName = 'file', dynamic body, Map<String, dynamic>? queryParameters, Map<String, String>? headers, String? saveFilePath, ProgressCallback? onSendProgress, StatusCodeConfig? statusConfig, CacheConfig? cacheConfig, RetryConfig? retryConfig, JsonParser<T>? parser, ErrorHandler? onError, RequestDoneCallback<T>? onDone, CancelToken? cancelToken, Duration? requestTimeout, ResponseParseMode? parseMode}) Future<FlintResponse<T>>

Available on FlintClient, provided by the FlintClientFileSaver extension

Uploads a single file using multipart/form-data.
uploadFiles<T>(String path, {required Map<String, File> files, dynamic body, Map<String, dynamic>? queryParameters, Map<String, String>? headers, String? saveFilePath, ProgressCallback? onSendProgress, StatusCodeConfig? statusConfig, CacheConfig? cacheConfig, RetryConfig? retryConfig, JsonParser<T>? parser, ErrorHandler? onError, RequestDoneCallback<T>? onDone, CancelToken? cancelToken, Duration? requestTimeout, ResponseParseMode? parseMode}) Future<FlintResponse<T>>

Available on FlintClient, provided by the FlintClientFileSaver extension

Uploads many files in one multipart/form-data request.