read method

  1. @override
Future<String?> read({
  1. required String key,
  2. required Map<String, String> options,
})
override

Reads a value from secure storage by its key.

Parameters:

  • key: The key of the value to retrieve.
  • options: A map of platform-specific options for the read operation.

Returns:

  • A Future that resolves to the value associated with the key, or null if the key does not exist.

Implementation

@override
Future<String?> read({
  required String key,
  required Map<String, String> options,
}) async => data[key];