setStringAsync static method

Future<bool> setStringAsync(
  1. String key,
  2. String value
)

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);
}