onEventBy method
StreamSubscription<EventAction<T> >
onEventBy(
- bool predicate(
- T event
- DispatchActionListener<
T> onListen
监听符合条件的事件
Implementation
StreamSubscription<EventAction<T>> onEventBy(
bool Function(T event) predicate,
DispatchActionListener<T> onListen,
) {
return streamEventWhereBy(predicate).listen(onListen);
}