putString method

Future<String?> putString(
  1. String key, {
  2. String value = "",
  3. MMkvPart part = MMkvPart.normal,
})

保存string数据 key 存储key value string value part 缓存区类型

Implementation

Future<String?> putString(String key, {String value = "", MMkvPart part = MMkvPart.normal}) {
  if (key.isEmptyString) {
    return Future.value("");
  }
  return _cacheData<String>(key, value, "string", part);
}