ChunkedUploader class

Uploads large files by chunking them into smaller parts

Constructors

ChunkedUploader(Dio _dio)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
upload({required Stream<List<int>> fileDataStream, required String fileName, required int fileSize, required String path, Map<String, dynamic>? data, CancelToken? cancelToken, int? maxChunkSize, dynamic onUploadProgress(double)?, ChunkHeadersCallback? headersCallback, String method = 'POST', String fileKey = 'file'}) Future<Response?>
Uploads the file using it's data stream Suitable for Web platform since the file path isn't available
uploadUsingFilePath({required String filePath, required String fileName, required String path, Map<String, dynamic>? data, CancelToken? cancelToken, int? maxChunkSize, dynamic onUploadProgress(double)?, ChunkHeadersCallback? headersCallback, String method = 'POST', String fileKey = 'file'}) Future<Response?>
Uploads the file using it's path

Operators

operator ==(Object other) bool
The equality operator.
inherited