getAttachmentOptions method

  1. @override
List<CometChatMessageComposerAction> getAttachmentOptions(
  1. CometChatTheme theme,
  2. BuildContext context,
  3. Map<String, dynamic>? id
)
override

override this to alter attachment options in CometChatMessageComposer

Implementation

@override
List<CometChatMessageComposerAction> getAttachmentOptions(
    CometChatTheme theme, BuildContext context, Map<String, dynamic>? id) {
  List<CometChatMessageComposerAction> actions =
      super.getAttachmentOptions(theme, context, id);

  if (isNotThread(id)) {
    actions.add(getAttachmentOption(theme, context, id));
  }

  return actions;
}