freePtrFunc method

  1. @override
void Function(Pointer<NativeType>) freePtrFunc()
override

Implementation

@override
void Function(Pointer) freePtrFunc() {
  try {
    return nativeLib().lookup<NativeFunction<Void Function(Pointer)>>(nativeFuncName("freePtr")).asFunction();
  } catch (e) {
    return calloc.free;
  }
}