registerEventHandle static method
Register a new event handler
Implementation
static Future<void> registerEventHandle(EventCallbackFunc callback) async {
final CallbackHandle _callback =
PluginUtilities.getCallbackHandle(callback)!;
await _methodChannel.invokeMethod(
'plugin.registerEventHandle', _callback.toRawHandle());
}