uploadChunk abstract method
Future<void>
uploadChunk(
- FileUploadPresentationResponse presentation,
- FileChunk chunk, {
- ProgressCallback? onProgress,
inherited
method to handle the upload of a FileChunk.
presentation is the response of the present method.
chunk is the chunk to upload.
onProgress is a callback that will be called
with the progress of the upload. The callback
will receive the current progress
and the total size of the file.
controller.uploadChunk(
presentation,
chunk,
onProgress: (progress, total) {
print('Upload progress: $progress of $total');
});
Implementation
Future<void> uploadChunk(
FileUploadPresentationResponse presentation,
FileChunk chunk, {
ProgressCallback? onProgress,
});