SfAIAssistView constructor

const SfAIAssistView({
  1. Key? key,
  2. required List<AssistMessage> messages,
  3. AssistComposer? composer = const AssistComposer(),
  4. AssistActionButton? actionButton,
  5. WidgetBuilder? placeholderBuilder,
  6. AssistWidgetBuilder? bubbleHeaderBuilder,
  7. AssistWidgetBuilder? bubbleAvatarBuilder,
  8. AssistWidgetBuilder? bubbleContentBuilder,
  9. AssistWidgetBuilder? bubbleFooterBuilder,
  10. AssistWidgetBuilder? responseLoadingBuilder,
  11. AssistPlaceholderBehavior placeholderBehavior = AssistPlaceholderBehavior.scrollWithMessage,
  12. AssistBubbleAlignment bubbleAlignment = AssistBubbleAlignment.auto,
  13. AssistSuggestionItemSelectedCallback? onSuggestionItemSelected,
  14. AssistBubbleToolbarItemSelectedCallback? onBubbleToolbarItemSelected,
  15. AssistBubbleSettings requestBubbleSettings = const AssistBubbleSettings(),
  16. AssistBubbleSettings responseBubbleSettings = const AssistBubbleSettings(),
  17. 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(),
});