MultipartFileUpload class Null safety

MultipartFileUpload handles files upload in chunks.. For files of size greater than 6 mb

Constructors

MultipartFileUpload({required MultipartUploadConfig config, dynamic onError(String error, String versionId, List<List> etagList)?, dynamic onUploadComplete(List<List> etagList, String versionId)?, dynamic onVersionIdCreated(String)?, dynamic onPartUploadComplete(List<List> etagList, String versionId)?, int numberOfParallelUploads = 2})

Properties

config MultipartUploadConfig
final
hashCode int
The hash code for this object.
read-onlyinherited
numberOfParallelUploads int
final
numberOfUploadingRequests int
read-only
onError → (dynamic Function(String error, String versionId, List<List> etagList)?)
onError that would be called when an error is encountered It returns the error, the version id of the file and the etagList that has been uploaded sofar
final
onPartUploadComplete → (dynamic Function(List<List> etagList, String versionId)?)
final
onUploadComplete → (dynamic Function(List<List> etagList, String versionId)?)
final
onVersionIdCreated → (dynamic Function(String)?)
onVersionIdCreated would be called once the version id is created.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
uploadCompletedState Stream<bool>
read-only
uploadProgress Stream<List<int>>
read-only

Methods

dispose() → void
Close the streams
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
pauseUpload() Future
Pause an upload that is currently on
prepareMultipartRequest() Future<bool>
toString() String
A string representation of this object.
inherited
upload() Future<bool>

Operators

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