showSummary method

dynamic showSummary(
  1. Map<String, dynamic>? id,
  2. User? user,
  3. Group? group,
  4. CometChatTheme? theme,
)

Implementation

showSummary(Map<String, dynamic>? id, User? user, Group? group,
    CometChatTheme? theme) async {
  Map<String, dynamic>? config;

  if (configuration?.apiConfiguration != null) {
    config = await configuration!.apiConfiguration!(user, group);
  }

  CometChatUIEvents.showPanel(
      id,
      CustomUIPosition.composerTop,
      (context) => AIConversationSummaryView(
            group: group,
            user: user,
            loadingStateText: configuration?.loadingStateText,
            emptyIconUrl: configuration?.emptyIconUrl,
            loadingStateView: configuration?.loadingStateView,
            loadingIconUrl: configuration?.loadingIconUrl,
            errorStateView: configuration?.errorStateView,
            emptyStateView: configuration?.errorStateView,
            errorIconUrl: configuration?.errorIconUrl,
            customView: configuration?.customView,
            aiConversationSummaryStyle:
                configuration?.conversationSummaryStyle,
            title: configuration?.title,
            onCloseIconTap: configuration?.onCloseIconTap,
            theme: configuration?.theme ?? theme ?? cometChatTheme,
            apiConfiguration: config,
            emptyIconPackageName: configuration?.emptyIconPackageName,
            errorIconPackageName: configuration?.errorIconPackageName,
            loadingIconPackageName: configuration?.loadingIconPackageName,
            emptyStateText: configuration?.emptyStateText,
            errorStateText: configuration?.errorStateText,
          ));
}