LargeFileHandlerWeb class

Web implementation of LargeFileHandlerPlatform.

A browser has no application documents directory, so the file-system operations this plugin provides cannot be implemented on web. Every method fails with an UnsupportedError rather than silently doing nothing.

Inheritance

Constructors

LargeFileHandlerWeb()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyAssetToLocalStorage(String assetName, String targetName) Future<void>
Copies the asset assetName to targetName on the local file system.
override
copyAssetToLocalStorageWithProgress(String assetName, String targetName) Stream<int>
Copies the asset assetName to targetName, emitting copy progress as integers from 0 to 100.
override
copyUrlToLocalStorage(String url, String targetName) Future<void>
Downloads the file at url to targetName on the local file system.
override
copyUrlToLocalStorageWithProgress(String url, String targetName) Stream<int>
Downloads the file at url to targetName, emitting download progress as integers from 0 to 100.
override
fileExists(String targetPath) Future<bool>
Returns whether a file already exists at targetPath.
override
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

Static Methods

registerWith(Registrar registrar) → void
Registers this class as the default platform instance on web.