NativeBindingsFfi constructor
NativeBindingsFfi()
Creates NativeBindingsFfi.
With native asset hooks, the library is resolved automatically by the Dart runtime. No manual path resolution is needed.
Implementation
NativeBindingsFfi() {
_instance ??= this;
MontyCancelRegistry.registerNativeCancel(
cancelById: (id) => instanceOrNull?.cancelById(id) ?? false,
isCancelledById: (id) => instanceOrNull?.isCancelledById(id),
ensureInitialized: NativeBindingsFfi.ensureInitialized,
);
}