initializer method

Backend-specific: produces the callable native pointer for function. Native: wraps a NativeCallable<C>, returns its nativeFunction cast to RVoid. Wasm: registers via addFunction(jsFunction, signature), wraps the int as a pointer.

Implementation

@override
MemoryPointer<RFunction<LoadFileTextCallbackBase>> initializer() {
  _callable = .isolateLocal(_rawFunction);
  return NativeMemoryPointer(_callable.nativeFunction.cast());
}