getDefaultOptions static method

List<CometChatOption>? getDefaultOptions(
  1. Conversation conversation,
  2. CometChatConversationsControllerProtocol controller,
  3. BuildContext context,
  4. CometChatTheme? theme,
)

Implementation

static List<CometChatOption>? getDefaultOptions(
    Conversation conversation,
    CometChatConversationsControllerProtocol controller,
    BuildContext context,
    CometChatTheme? theme) {
  return [
    CometChatOption(
        id: ConversationOptionConstants.delete,
        icon: AssetConstants.delete,
        packageName: UIConstants.packageName,
        backgroundColor: AppTheme.problem,
        onClick: () {
          controller.deleteConversation(conversation);
        })
  ];
}