setEventHandler method
- RuntimeEventHandler handler
Implementation
void setEventHandler(RuntimeEventHandler handler) =>
_discard((arena, completion) {
final registrations = _NativeRegistrations(_callbackRoots);
return registrations.run(
() => raw.mln_runtime_set_event_handler(
_handle.raw,
registrations.add(
_prepareRuntimeEventHandler(handler, registrations.roots),
),
completion,
nativeDiagnostic,
),
);
});