read method
Reads a value from secure storage.
Returns the value associated with key
if it exists, null otherwise.
The value is returned as a String, regardless of the original type.
Example:
final value = await storage.read('settings.theme');
if (value != null) {
print('Theme setting: $value');
}
See also:
Implementation
@override
Future<String?> read(String key) async {
return _storage.read(key: key);
}