stopWorker method

Future<void> stopWorker()

Stops the background worker gracefully.

Implementation

Future<void> stopWorker() async {
  await _worker?.stop();
  _worker = null;
}