UpChunkOptions class Null safety

Defines the options to be passed to UpChunk's createUpload method

Constructors

UpChunkOptions()

Properties

attempts int
The number of times to retry any given chunk.
read / write
chunkSize int
The size in kb of the chunks to split the file into, with the exception of the final chunk which may be smaller. This parameter should be in multiples of 64
read / write
delayBeforeAttempt int
Number of seconds to wait before a retry is fired
read / write
endPoint String?
Upload url as String, required if endPointResolver == null
read / write
endPointResolver Future<String>?
Future that returns the upload url as String, required if endPoint == null
read / write
file File?
File to upload, required
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
headers Map<String, String>
A Map with any headers you'd like included with the PUT request for each chunk.
read / write
onAttempt ↔ (void Function?(int chunkNumber, int chunkSize)?)
Fired immediately before a chunk upload is attempted. [...]
read / write
onAttemptFailure ↔ (void Function?(String message, int chunkNumber, int attemptsLeft)?)
Fired when an attempt to upload a chunk fails. [...]
read / write
onError ↔ (void Function?(String message, int chunk, int attempts)?)
Fired when a chunk has reached the max number of retries or the response code is fatal and implies that retries should not be attempted.
read / write
onOffline ↔ (void Function?()?)
Fired when the client has gone offline.
read / write
onOnline ↔ (void Function?()?)
Fired when the client has gone online.
read / write
onProgress ↔ (void Function?(double progress)?)
Fired continuously with incremental upload progress. This returns the current percentage of the file that's been uploaded. [...]
read / write
onSuccess ↔ (void Function?()?)
Fired when the upload is finished successfully.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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