onEvent method
监听指定事件
Implementation
StreamSubscription<EventAction<T>> onEvent(
T event,
DispatchActionListener<T> onListen,
) {
return onEventBy((item) => event == item, onListen);
}
监听指定事件
StreamSubscription<EventAction<T>> onEvent(
T event,
DispatchActionListener<T> onListen,
) {
return onEventBy((item) => event == item, onListen);
}