initialize static method

Future<void> initialize()

Implementation

static Future<void> initialize() async {
  final CallbackHandle callback =
      PluginUtilities.getCallbackHandle(callbackDispatcher)!;
  await _channel.invokeMethod(Keys.METHOD_PLUGIN_INITIALIZE_SERVICE,
      {Keys.ARG_CALLBACK_DISPATCHER: callback.toRawHandle()});
}