VoStorage class
Key-value storage backed by FlutterSecureStorage.
Use this instead of adding a storage package to your app or to packages built on colveor_ui.
Example:
const storage = VoStorage();
await storage.write('token', 'abc');
final token = await storage.read('token');
Constructors
- VoStorage()
-
const
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
-
containsKey(
String key) → Future< bool> -
Whether a value is saved under
key. -
delete(
String key) → Future< void> -
Removes the value for
key. -
deleteAll(
) → Future< void> - Removes every saved value.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String key) → Future< String?> -
Returns the value for
key, or null when nothing was saved. -
readAll(
) → Future< Map< String, String> > - Returns every saved key and value.
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, String value) → Future< void> -
Saves
valueunderkey.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited