AgentConversation.builder constructor

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

Creates a transcript that builds its itemCount turns lazily.

Implementation

const AgentConversation.builder({
  super.key,
  required int this.itemCount,
  required IndexedWidgetBuilder this.itemBuilder,
  this.findChildIndexCallback,
  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,
}) : children = null;