LocalStorage class

A utility class for handling local storage operations.

Properties

hashCode int
The hash code for this object.
no setterinherited
root Future<String>
Retrieves the root directory path for local storage.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String filename) Future<void>
Deletes the file with the specified filename.
deleteByPath(String path) Future<void>
Deletes the file at the specified path.
isExisted(String filename) Future<bool>
Check the file with the specified filename
load(String filename) Future<File?>
Loads the file with the specified filename.
loadByPath(String path) Future<File?>
Loads the file at the specified path.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reference(String filename) Future<String?>
Retrieves the reference path for the specified filename.
save(String filename, File file) Future<String>
Saves the provided file with the specified filename.
saveAsBytes(String filename, List<int> bytes) Future<String>
Saves the provided bytes as a file with the specified filename.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

i LocalStorage
Get the singleton instance of LocalStorage.
no setter
I LocalStorage
Alias for i.
no setter
instance LocalStorage
Alias for i.
no setter