initPlugins static method
Implementation
static initPlugins(List<TencentCloudChatPluginItem>? plugins) async {
if (plugins != null) {
for (var i = 0; i < plugins.length; i++) {
var plugin = plugins[i];
await plugin.pluginInstance.init(json.encode(plugin.initData ?? {}));
TencentCloudChat.instance.dataInstance.basic.addPlugin(plugin);
}
}
}