countFor static method

int countFor(
  1. Client client,
  2. String method
)

How many listeners method currently has. For tests and diagnostics.

Implementation

static int countFor(Client client, String method) =>
    _of(client)[method]?.length ?? 0;