addUsedComponent method

void addUsedComponent(
  1. ({TencentCloudChatComponentsEnum componentEnum, TencentCloudChatWidgetBuilder widgetBuilder}) component
)

Implementation

void addUsedComponent(({TencentCloudChatComponentsEnum componentEnum, TencentCloudChatWidgetBuilder widgetBuilder}) component) {
  _usedComponents.add(component.componentEnum);
  _componentsMap[component.componentEnum] = component.widgetBuilder;
  _usedComponents.toSet().toList();
}