passes method

bool passes(
  1. String event,
  2. Map<String, dynamic> payload
)

Implementation

bool passes(String event, Map<String, dynamic> payload) {
  if (eventToWaiters.has(event)) {
    List<SingleEventWaiter> waiters = eventToWaiters.get(event);
    for (SingleEventWaiter waiter in waiters) {
      if (waiter.passes(event, payload)) {
        return true;
      }
    }
  }
  return false;
}