StorageService class

A cross-platform storage service that provides data persistence, compression, and encryption capabilities.

Constructors

StorageService()
factory

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

clear() Future<void>
Clears all data from storage.
deleteData(String key) Future<void>
Deletes data from storage.
getAllKeys() List<String>
get all keys
initialize({String? encryptionKey}) Future<void>
Initializes the StorageService.
loadData(String key, {bool decompress = false, bool decrypt = false}) Future<Map<String, dynamic>?>
Loads data from storage.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveData(String key, Map<String, dynamic> data, {bool compress = false, bool encrypt = false}) Future<void>
Saves data to storage.
toString() String
A string representation of this object.
inherited

Operators

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