closeWorker method
Releases the worker object behind this task.
Implementation
@override
int closeWorker(Pointer<Void> worker, Pointer<Pointer<Char>> error) {
final status = bindings.text_classifier_close(worker, error);
_log.finest('Closed TextClassifier in native memory with status $status');
return status;
}