notify method
void
notify(
- _Callback<
T> callback
- 通知状态改变,触发builder
- Notifies a state change, triggering the Builder
Implementation
void notify(_Callback<T> callback) async {
callback(state);
if (!_controller.isClosed) _controller.add(state);
}