bind method

Stream<ChannelReadEvent> bind(
  1. String eventName
)

Return a stream capturing events with respective eventName.

Implementation

Stream<ChannelReadEvent> bind(String eventName) => publicStreamGetter()
    .where(
      (event) => _bindStreamFilterPredicate(
        targetEventName: eventName,
        event: event,
      ),
    )
    .transform<ChannelReadEvent>(
      StreamTransformer.fromHandlers(
        handleData: _bindStreamSinkFilter,
      ),
    );