readString method
Reads a string value from the store under the given key.
Implementation
Future<String?> readString(String key) async {
if (useSecure) {
return await _secureStorage.read(key: key);
} else {
final prefs = await SharedPreferences.getInstance();
return prefs.getString(key);
}
}