removeByUuids method Null safety

void removeByUuids(
  1. List<String> uuids
)

Implementation

void removeByUuids(List<String> uuids) {
  var exception = _getException();

  final removeConstructor =
      _dll_handle.lookupFunction<_DynamicTemplateIndex_remove_2_c, _DynamicTemplateIndex_remove_2_dart>(_c_namespace + "DynamicTemplateIndex_remove_2");

  Pointer<Pointer<Utf8>> tempUuids = malloc.allocate(sizeOf<Pointer<Pointer<Utf8>>>() * uuids.length);

  for (int i = 0; i < uuids.length; i++) {
    tempUuids[i] = uuids[i].toNativeUtf8();
  }

  removeConstructor(_impl, tempUuids, uuids.length, exception);

  malloc.free(tempUuids);

  checkException(exception, _dll_handle);
}