AgentConversation.builder constructor
const
AgentConversation.builder({
- Key? key,
- required int itemCount,
- required IndexedWidgetBuilder itemBuilder,
- ChildIndexGetter? findChildIndexCallback,
- Widget? empty,
- AgentLiveEdgeController? liveEdge,
- ScrollController? scrollController,
- bool busy = false,
- String busyLabel = 'Busy',
- String semanticLabel = 'Conversation',
- bool showLatestButton = true,
- String latestLabel = 'Scroll to latest',
- AgentGlyphBuilder? glyphBuilder,
- IconButtonStyler latestStyle = const IconButtonStyler.create(),
- AgentConversationStyler style = const AgentConversationStyler.create(),
- 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;