FileSystem class abstract

A virtual file system used by a worker to persist database files.

Constructors

FileSystem()

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

exists(FileType type) Future<bool>
Returns whether a database file identified by its type exists.
flush() Future<void>
If the file system hosting the database in the worker is not synchronous, flushes pending writes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readFile(FileType type) Future<Uint8List>
Reads the database file (or its journal).
toString() String
A string representation of this object.
inherited
writeFile(FileType type, Uint8List content) Future<void>
Replaces the database file (or its journal), creating the virtual file if it doesn't exist.

Operators

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