Properties
-
hasFileSystem
→ bool
-
True when paths are real files that other code (players, share sheets) can open.
no setter
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
aead(Uint8List key)
→ Future<UAead>
-
The authenticated cipher the vault uses on this platform.
-
copy(String from, String to)
→ Future<void>
-
-
delete(String path)
→ Future<void>
-
-
deleteDirectory(String directory)
→ Future<void>
-
-
deleteSecret(String alias)
→ Future<void>
-
-
exists(String path)
→ Future<bool>
-
-
freeSpace(String path)
→ Future<int?>
-
Bytes available on the volume holding
path, when the platform can tell.
-
length(String path)
→ Future<int?>
-
-
list(String directory)
→ Future<List<String>>
-
Names (not paths) of the files directly under
directory.
-
loadSecret(String alias)
→ Future<Uint8List?>
-
-
modified(String path)
→ Future<DateTime?>
-
-
move(String from, String to)
→ Future<void>
-
Moves a file, falling back to copy + delete across volumes.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
open(String path, {bool truncate = false})
→ Future<UStorageSink>
-
-
read(String path, {int start = 0, int? end})
→ Stream<Uint8List>
-
Streams bytes in
[start, end); end defaults to the file length.
-
readAll(String path)
→ Future<Uint8List?>
-
-
root(UStorageBucket bucket)
→ Future<String>
-
Returns the root "directory" of
bucket, creating it if needed.
-
storeSecret(String alias, Uint8List secret)
→ Future<bool>
-
Persists a small secret (the vault master key) in the platform key store.
Returns false when no secure store exists and the caller must fall back.
-
toString()
→ String
-
A string representation of this object.
inherited
-
writeAll(String path, List<int> bytes)
→ Future<void>
-
Replaces the file atomically: a crash leaves either the old or the new content.