ChatSuggestionItemSelectedCallback typedef

ChatSuggestionItemSelectedCallback = void Function(bool selected, int messageIndex, ChatMessageSuggestion suggestion, int suggestionIndex)

The ChatSuggestionItemSelectedCallback typedef represents a callback function that is called when a chat suggestion item is selected. It takes a selected flag, the messageIndex for the message, the suggestion being interacted with, and the suggestionIndex indicating the position of the suggestion.

Implementation

typedef ChatSuggestionItemSelectedCallback = void Function(
  bool selected,
  int messageIndex,
  ChatMessageSuggestion suggestion,
  int suggestionIndex,
);