createFaceAttributesEstimator method Null safety

FaceAttributesEstimator createFaceAttributesEstimator(
  1. String ini_file
)

Implementation

FaceAttributesEstimator createFaceAttributesEstimator(final String ini_file) {
  final faceAttributesEstimatorConstructor =
      _dll_handle.lookupFunction<_FaceAttributesEstimatorConstr_c, _FaceAttributesEstimatorConstr_dart>(
          _c_namespace + 'FacerecService_createFaceAttributesEstimator');
  Pointer<Pointer<Utf8>> _emptyPointerStrList = malloc.allocate(1);
  Pointer<Double> _emptyPointerDouble = malloc.allocate(1);
  final exception = _getException();

  final faceAttributesEstimatorPointer = faceAttributesEstimatorConstructor(
      _impl, (_facerecConfDir + ini_file).toNativeUtf8(), 0, _emptyPointerStrList, _emptyPointerDouble, exception);

  checkException(exception, _dll_handle);

  return FaceAttributesEstimator(_dll_handle, faceAttributesEstimatorPointer);
}