Vault class

The Vault Facade.

Provides static access to the MagicVaultService for secure storage operations.

Constructors

Vault()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

delete(String key) Future<void>
Remove a value from the vault.
fake([Map<String, String> initialValues = const {}]) FakeVaultService
Swap the vault service with a FakeVaultService for testing.
flush() Future<void>
Flush all values from the vault.
get(String key) Future<String?>
Retrieve a value from the vault.
put(String key, String value) Future<void>
Store a value in the vault.
unfake() → void
Remove the FakeVaultService from the container.