UploadFile class Null safety

UploadFile handles the uploading of a File of less than 5mb. Greater than 5mb should use MultipartFileUpload

Constructors

UploadFile({required UploadTaskConfig config, dynamic onSendComplete(dynamic response, String versionId)?})

Properties

config UploadTaskConfig
final
hashCode int
The hash code for this object.
read-onlyinherited
onSendComplete → (dynamic Function(dynamic response, String versionId)?)
onSendComplete is called when the file has been uploaded completely
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
uploadProgress Stream<List<int>>
uploadProgess exposes a stream that gives the upload progress for the file being uploaded
read-only

Methods

dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
upload() Future<bool>

Operators

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