onEventData<R> method

StreamSubscription<R> onEventData<R>(
  1. T event,
  2. ValueChanged<R> onListen
)

监听指定事件的数据

Implementation

StreamSubscription<R> onEventData<R>(
  T event,
  ValueChanged<R> onListen,
) {
  return onEventDataBy(
    (item) => event == item,
    onListen,
  );
}