Line | Branch | Hits | Source code |
---|---|---|---|
1 | import 'typedefs.dart'; |
||
2 | import 'worker/worker_request.dart'; |
||
3 |
|
||
4 | /// Base class for a worker service. |
||
5 | abstract interface class WorkerService { |
||
6 | /// Map of command handlers. Upon reception of a [WorkerRequest], the platform |
||
7 | /// worker will dispatch the request to the [CommandHandler] matching the value |
||
8 | /// of [WorkerRequest.command]. |
||
9 | OperationsMap get operations; |
||
10 |
|
||
11 | /// Empty command handlers map. |
||
12 | 4 | static final OperationsMap noOperations = OperationsMap({}); |
|
13 | } |