AgentConversation constructor

const AgentConversation({
  1. Key? key,
  2. required List<Widget> children,
  3. Widget? empty,
  4. AgentLiveEdgeController? liveEdge,
  5. ScrollController? scrollController,
  6. bool busy = false,
  7. String busyLabel = 'Busy',
  8. String semanticLabel = 'Conversation',
  9. bool showLatestButton = true,
  10. String latestLabel = 'Scroll to latest',
  11. AgentGlyphBuilder? glyphBuilder,
  12. IconButtonStyler latestStyle = const IconButtonStyler.create(),
  13. AgentConversationStyler style = const AgentConversationStyler.create(),
  14. AgentConversationSpec? styleSpec,
})

Creates a transcript of children, one per turn.

Implementation

const AgentConversation({
  super.key,
  required List<Widget> this.children,
  this.empty,
  this.liveEdge,
  this.scrollController,
  this.busy = false,
  this.busyLabel = 'Busy',
  this.semanticLabel = 'Conversation',
  this.showLatestButton = true,
  this.latestLabel = 'Scroll to latest',
  this.glyphBuilder,
  this.latestStyle = const IconButtonStyler.create(),
  this.style = const AgentConversationStyler.create(),
  this.styleSpec,
}) : itemCount = null,
     itemBuilder = null,
     findChildIndexCallback = null;