putString static method

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

put string.

Implementation

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