putInt method

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

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

Implementation

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