UploadTask class

Represents the process of uploading an object, and allows to monitor and manage the upload.

See: firebase.google.com/docs/reference/js/firebase.storage.UploadTask.

Properties

future Future<UploadTaskSnapshot>
Returns the UploadTaskSnapshot when the upload successfully completes.
no setter
hashCode int
The hash code for this object.
no setterinherited
jsObject → UploadTaskJsImpl
JS object.
finalinherited
onStateChanged Stream<UploadTaskSnapshot>
Stream for upload task state changed event.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snapshot UploadTaskSnapshot
Returns the upload task snapshot of the current task state.
no setter

Methods

cancel() bool
Cancels a running task. Has no effect on a complete or failed task. Returns true if it had an effect.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() bool
Pauses the running task. Has no effect on a paused or failed task. Returns true if it had an effect.
resume() bool
Resumes the paused task. Has no effect on a running or failed task. Returns true if it had an effect.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getInstance(UploadTaskJsImpl jsObject) UploadTask
Creates a new UploadTask from a jsObject.