put static method
向本地sp文件中添加数据
key
存储key
value
存储数据,仅支持String、int、double类型
Implementation
static void put({String? key, dynamic value}) {
if (key.isEmptyString || !_isMatchType(value)) {
return;
}
CloudChannelManager.instance.send(_sharedPreferencesAction, arguments: {"key": key, "type": "set", "value": value});
}