pub unsafe extern "C" fn Dart_RegisterRootServiceRequestCallback(
method: *const c_char,
callback: Dart_ServiceRequestCallback,
user_data: *mut c_void
)
Expand description
Register a Dart_ServiceRequestCallback to be called to handle requests for the named rpc. The callback will be invoked without a current isolate.
\param method The name of the command that this callback is responsible for. \param callback The callback to invoke. \param user_data The user data passed to the callback.
NOTE: If multiple callbacks with the same name are registered, only the last callback registered will be remembered.