putStringMap static method

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

存储sp中key的map值

Implementation

static Future<bool> putStringMap(String key, Map value) {
  var jsonMap = value.ktoJson();
  return _prefs.setString(key, jsonMap);
}