ICloudTransferProgress class

A typed progress event emitted from upload/download progress streams.

Native progress streams can deliver progress updates, terminal completion, or errors. This wrapper makes it easy to handle all three as data events.

Constructors

ICloudTransferProgress.done()
Creates a completion event.
const
ICloudTransferProgress.error(PlatformException exception)
Creates an error event.
const
ICloudTransferProgress.progress(double percent)
Creates a progress update event.
const

Properties

exception PlatformException?
The underlying platform exception.
final
hashCode int
The hash code for this object.
no setterinherited
isDone bool
Whether this event represents successful completion.
no setter
isError bool
Whether this event represents a failure.
no setter
isProgress bool
Whether this event represents a progress update.
no setter
percent double?
Upload/download progress as a percentage.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ICloudTransferProgressType
The kind of event.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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