setMap static method

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

Implementation

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