Worker constructor

Worker(
  1. Future<void> worker(),
  2. String type
)

Implementation

Worker(this.worker, this.type);