registerEventHandle static method

Future<void> registerEventHandle(
  1. EventCallbackFunc callback
)

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());
}