FileSystem class abstract

A virtual file system implementation for web-based sqlite3 databases.

Implementers

Constructors

FileSystem.inMemory()
Creates an in-memory file system that deletes data when the tab is closed.
factory

Properties

files List<String>
Lists all files stored in this file system.
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

clear() → void
Deletes all files stored in this file system.
createFile(String path, {bool errorIfNotExists = false, bool errorIfAlreadyExists = false}) → void
Creates an empty file at path.
createTemporaryFile() String
Creates a temporary file with a unique name.
deleteFile(String path) → void
Deletes a file at path if it exists, throwing a FileSystemException otherwise.
exists(String path) bool
Whether a file at path exists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String path, Uint8List target, int offset) int
Reads a chunk of the file at path and offset offset into the target buffer.
sizeOfFile(String path) int
Returns the size of a file at path if it exists.
toString() String
A string representation of this object.
inherited
truncateFile(String path, int length) → void
Sets the size of the file at path to length.
write(String path, Uint8List bytes, int offset) → void
Writes a chunk from bytes into the file at path path and offset offset.

Operators

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