stopWorker method
Stops the background worker gracefully.
Implementation
Future<void> stopWorker() async {
await _worker?.stop();
_worker = null;
}
Stops the background worker gracefully.
Future<void> stopWorker() async {
await _worker?.stop();
_worker = null;
}