onEventBy method

StreamSubscription<EventAction<T>> onEventBy(
  1. bool predicate(
    1. T event
    ),
  2. DispatchActionListener<T> onListen
)

监听符合条件的事件

Implementation

StreamSubscription<EventAction<T>> onEventBy(
  bool Function(T event) predicate,
  DispatchActionListener<T> onListen,
) {
  return streamEventWhereBy(predicate).listen(onListen);
}