getPlugin method

TencentCloudChatPluginItem? getPlugin(
  1. String name
)

Implementation

TencentCloudChatPluginItem? getPlugin(String name) {
  if (hasPlugins(name)) {
    int idx = plugins.indexWhere((element) => element.name == name);
    return plugins[idx];
  }
  return null;
}