callCount method

int callCount(
  1. String service,
  2. String command
)

Get count of commands sent to a service/command.

Implementation

int callCount(String service, String command) {
  return sentCommands
      .where((c) => c.service == service && c.command == command)
      .length;
}