getAIOptions method

  1. @override
List<CometChatMessageComposerAction> getAIOptions(
  1. User? user,
  2. Group? group,
  3. CometChatTheme theme,
  4. BuildContext context,
  5. Map<String, dynamic>? id,
  6. AIOptionsStyle? aiOptionStyle,
)
override

override this to alter attachment options in CometChatMessageComposer

Implementation

@override
List<CometChatMessageComposerAction> getAIOptions(
    User? user,
    Group? group,
    CometChatTheme theme,
    BuildContext context,
    Map<String, dynamic>? id,
    AIOptionsStyle? aiOptionStyle) {
  List<CometChatMessageComposerAction> actionList =
      super.getAIOptions(user, group, theme, context, id, aiOptionStyle);
  actionList.add(getAIComposerButton(context, theme));
  return actionList;
}