addWorker method

void addWorker(
  1. Worker worker
)

Add a listerner that executes everytime the specified action is executed

Implementation

void addWorker(Worker worker) => _workers.add(worker);