onSuggestionItemSelected property

AssistSuggestionItemSelectedCallback? onSuggestionItemSelected
final

Called when the suggestion is selected.

@override
Widget build(BuildContext context) {
  return SfAIAssistView(
    onSuggestionItemSelected: (bool selected, int messageIndex,
        AssistMessageSuggestion suggestion, int suggestionIndex) {
      _handleSuggestionItemSelected();
    },
 );
}

Implementation

final AssistSuggestionItemSelectedCallback? onSuggestionItemSelected;