SfAIAssistView constructor
const
SfAIAssistView({
- Key? key,
- required List<
AssistMessage> messages, - AssistComposer? composer = const AssistComposer(),
- AssistActionButton? actionButton,
- WidgetBuilder? placeholderBuilder,
- AssistWidgetBuilder? bubbleHeaderBuilder,
- AssistWidgetBuilder? bubbleAvatarBuilder,
- AssistWidgetBuilder? bubbleContentBuilder,
- AssistWidgetBuilder? responseLoadingBuilder,
- AssistPlaceholderBehavior placeholderBehavior = AssistPlaceholderBehavior.scrollWithMessage,
- AssistBubbleAlignment bubbleAlignment = AssistBubbleAlignment.auto,
- AssistSuggestionItemSelectedCallback? onSuggestionItemSelected,
- AssistBubbleToolbarItemSelectedCallback? onBubbleToolbarItemSelected,
- AssistBubbleSettings requestBubbleSettings = const AssistBubbleSettings(),
- AssistBubbleSettings responseBubbleSettings = const AssistBubbleSettings(),
- AssistMessageToolbarSettings responseToolbarSettings = const AssistMessageToolbarSettings(),
Implementation
const SfAIAssistView({
super.key,
required this.messages,
this.composer = const AssistComposer(),
this.actionButton,
this.placeholderBuilder,
this.bubbleHeaderBuilder,
this.bubbleAvatarBuilder,
this.bubbleContentBuilder,
this.bubbleFooterBuilder,
this.responseLoadingBuilder,
this.placeholderBehavior = AssistPlaceholderBehavior.scrollWithMessage,
this.bubbleAlignment = AssistBubbleAlignment.auto,
this.onSuggestionItemSelected,
this.onBubbleToolbarItemSelected,
this.requestBubbleSettings = const AssistBubbleSettings(),
this.responseBubbleSettings = const AssistBubbleSettings(),
this.responseToolbarSettings = const AssistMessageToolbarSettings(),
});