remove method
清除key对应缓存数据
key
存储key
part
缓存区类型
Implementation
Future<dynamic> remove(String key, {MMkvPart part = MMkvPart.normal}) {
if (key.isEmptyString) {
return Future.value();
}
var withId = "";
if (part == MMkvPart.user) {
withId = _userWithId;
} else if (part == MMkvPart.state) {
withId = _stateWithId;
} else {
withId = _ordinaryWithId;
}
return CloudChannelManager.instance.send<dynamic>(_mmkvDeleteMethodName, arguments: {
"withId": withId,
"key": key,
});
}