putString static method

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

Implementation

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