putBool method
保存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);
}