putString static method

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

Implementation

static Future<bool> putString(String key, String value) async {
  if (_prefs == null) await init();
  return await _prefs?.setString(key, value) ?? false;
}