MultipartFileUpload constructor Null safety
- {required MultipartUploadConfig config,
- dynamic onError( )?,
- dynamic onUploadComplete( )?,
- dynamic onVersionIdCreated( )?,
- dynamic onPartUploadComplete( )?,
- int numberOfParallelUploads = 2}
Implementation
MultipartFileUpload({
required this.config,
this.onError,
this.onUploadComplete,
this.onVersionIdCreated,
this.onPartUploadComplete,
this.numberOfParallelUploads =
2, //This is the default number of uploads to be done in parallel, can be increased as you so wish
}) {
_uploadingNumberNotifier.addListener(_shouldUpload, fireImmediately: false);
_uploadingNumberNotifier.addListener(_calculateUploadProgress,
fireImmediately: false);
_fileUploadController.config = config;
}