putBool method

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

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

Implementation

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