FileStore class
Web fallback for file-backed persistence.
This implementation stores data in memory only and is not persistent. Provide a custom SaveStore for durable web storage.
Constructors
- FileStore(String path)
- Creates an in-memory fallback store.
- FileStore.file(Object file)
- Creates an in-memory fallback store for a file-like handle.
Properties
Methods
-
clear(
) → Future< void> -
Clears the stored save data.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
) → Future< String?> -
Reads the stored save, or
nullif missing.override -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String data) → Future< void> -
Writes the raw save data.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited