TestFlutterSecureStoragePlatform class
The TestFlutterSecureStoragePlatform class is a test implementation of
the FlutterSecureStoragePlatform interface, allowing for in-memory storage
of key-value pairs for testing purposes.
- Inheritance
-
- Object
- PlatformInterface
- FlutterSecureStoragePlatform
- TestFlutterSecureStoragePlatform
Constructors
-
TestFlutterSecureStoragePlatform(Map<
String, String> data) -
Creates an instance of
TestFlutterSecureStoragePlatformwith an in-memory data store.
Properties
Methods
-
containsKey(
{required String key, required Map< String, String> options}) → Future<bool> -
Checks whether a key exists in secure storage.
override
-
delete(
{required String key, required Map< String, String> options}) → Future<void> -
Deletes a key-value pair from secure storage.
override
-
deleteAll(
{required Map< String, String> options}) → Future<void> -
Deletes all key-value pairs from secure storage.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
{required String key, required Map< String, String> options}) → Future<String?> -
Reads a value from secure storage by its key.
override
-
readAll(
{required Map< String, String> options}) → Future<Map< String, String> > -
Reads all key-value pairs from secure storage.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
{required String key, required String value, required Map< String, String> options}) → Future<void> -
Writes a key-value pair to secure storage.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited