onEventDataBy<R> method

StreamSubscription<R> onEventDataBy<R>(
  1. bool predicate(
    1. T event
    ),
  2. ValueChanged<R> onListen
)

监听符合条件的事件数据

Implementation

StreamSubscription<R> onEventDataBy<R>(
  bool Function(T event) predicate,
  ValueChanged<R> onListen,
) {
  return streamEventDataWhereBy<R>(predicate).listen(onListen);
}