LocalStorage class
A utility class for handling local storage operations.
Properties
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 specifiedfilename
. -
saveAsBytes(
String filename, List< int> bytes) → Future<String> -
Saves the provided
bytes
as a file with the specifiedfilename
. -
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