addRecognizerTemplate method Null safety

void addRecognizerTemplate(
  1. Template template,
  2. String uuid
)

Implementation

void addRecognizerTemplate(Template template, String uuid) {
  var exception = _getException();

  final addConstructor =
      _dll_handle.lookupFunction<_DynamicTemplateIndex_add_1_c, _DynamicTemplateIndex_add_1_dart>(_c_namespace + "DynamicTemplateIndex_add_1_");

  addConstructor(_impl, template._impl, uuid.toNativeUtf8(), exception);

  checkException(exception, _dll_handle);
}