init method

Future<bool?> init(
  1. InitConfig config,
  2. OnConnectListener listener, {
  3. String? operationID,
})

Implementation

Future<bool?> init(
  InitConfig config,
  OnConnectListener listener, {
  String? operationID,
}) {
  _connectListener = listener;
  config.logFilePath ??= config.dataDir;
  return _channel.invokeMethod(
    'initSDK',
    _buildParam(
      {
        ...config.toMap(),
        "operationID": Utils.checkOperationID(operationID),
      },
    ),
  );
}