processing method Null safety
- RawSample sample
Implementation
Future<Template> processing(RawSample sample) async {
ReceivePort receivePort = ReceivePort();
int result = 0;
_sendPort.send({"event": _RecognizerEvents.PROCESSING, "sendPort": receivePort.sendPort, "rawSample": sample._impl.address});
result = await receivePort.first;
return Template(DynamicLibrary.open(_dllPath), Pointer<Void>.fromAddress(result));
}