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 = [
    takePhotoOption(theme, context),
    photoAndVideoLibraryOption(theme, context),
    audioAttachmentOption(theme, context),
    fileAttachmentOption(theme, context)
  ];

  return actions;
}