setStringAsync static method
Sets a string value and returns a Future that completes when the write is done.
Implementation
static Future<bool> setStringAsync(String key, String value) async {
_ensureInitialized();
return await _prefs!.setString(key, value);
}