dispose method
Releases all resources held by the worker.
This kills the background isolate and frees model memory. After calling dispose, this instance cannot be used for inference.
Implementation
@override
Future<void> dispose() => super.dispose();