putObject static method

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

put object.

Implementation

static Future<bool>? putObject(String key, Object value) {
  return _prefs?.setString(key, json.encode(value));
}