LargeFileHandlerDesktop class

Pure-Dart implementation of LargeFileHandlerPlatform for desktop platforms (Windows and Linux), which have full dart:io access.

Inheritance

Constructors

LargeFileHandlerDesktop()

Properties

assetLoader Future<ByteData> Function(String key)
Seam for tests: loads asset bytes by key (e.g. assets/foo.json).
getter/setter pair
directoryProvider Future<Directory> Function()
Seam for tests: resolves the base directory for relative target paths.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
httpClient ↔ Client
Seam for tests: HTTP client used for network downloads.
getter/setter pair
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() → void
Registers this class as the default platform instance.