setString method

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

Implementation

Future<bool> setString(String key, String value) {
  var results = _preferences.setString(key, jsonEncode(value));
  if (localKeys.contains(key)) return results;
  localKeys.add(key);
  return results;
}