processing method Null safety

Template processing(
  1. RawSample sample
)

Create a template from detected face sample (from Capturer of VideoWorker).

Implementation

Template processing(final RawSample sample) {
  final process = _dll_handle.lookupFunction<_RecognizerProcessing, _RecognizerProcessing>(_c_namespace + 'Recognizer_processing');
  final exception = _getException();
  final templPointer = process(_impl, sample._impl, exception);
  checkException(exception, _dll_handle);
  return Template(_dll_handle, templPointer);
}