set<T> method
填充共享状态
key
key value
值 withNotify
是否通知共享状态变化
通知会通过 onKeyChange 监听
Implementation
void set<T>(String key, T value, {bool withNotify = true}) {
_store[key] = value;
if (withNotify) {
_streamController.add((k: key, v: value));
}
}