TusAPI class
Constructors
Properties
- errorMessage → String?
-
Get the error message in case of any error
no setter
- fingerprint → String
-
The fingerprint of the file being uploaded
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- resumingEnabled → bool
-
Whether the client supports resuming
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → TusUploadState
-
Get the upload state
no setter
- tusClient → TusClient
-
no setter
- uploadMetadata → String
-
The 'Upload-Metadata' header sent to server
no setter
- uploadURI → String
-
The URI on the server for the file
no setter
Methods
-
cancelUpload(
) → Future? - Cancels the current upload
-
canResume(
) → Future< bool> - Check if possible to resume an already started upload
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pauseUpload(
) → Future? - Pause the current upload
-
resumeUpload(
) → Future< void> - Resume the current upload
-
startUpload(
{ProgressCallback? onProgress, dynamic onComplete(CloudflareStreamVideo? cloudflareStreamVideo)?, dynamic onTimeout()?}) → Future< void> -
Start or resume an upload in chunks
It throws
ProtocolException
on server error -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
generateMetadata(
Map< String, dynamic> ? map) → String?
Constants
- tusVersion → const String