writeString method
Writes a string value to the store under the given key.
Implementation
Future<void> writeString(String key, String value) async {
if (useSecure) {
await _secureStorage.write(key: key, value: value);
} else {
final prefs = await SharedPreferences.getInstance();
await prefs.setString(key, value);
}
}