where method

EventSubscriptionBuilder<T> where(
  1. bool test(
    1. T event
    )
)

Filters the events

It extends the current builder so that only inputs that pass the test clause will be kept for the EventHandler.

Implementation

EventSubscriptionBuilder<T> where(bool Function(T event) test) {
  return _WhereEventSubscriptionBuilder(parent: this, test: test);
}