setState method
通知更新
Implementation
void setState(LiveDataCallBack<T> fn, {bool notify = true}) {
if (hostDispose) {
return;
}
fn(value);
if (notify) {
this.notifyListeners();
}
}
通知更新
void setState(LiveDataCallBack<T> fn, {bool notify = true}) {
if (hostDispose) {
return;
}
fn(value);
if (notify) {
this.notifyListeners();
}
}