AIConversationStarterView class

AIConversationStarterView is a widget that is rendered as the content view for AIConversationStarterExtension

AiConversationStarterTopView(
  style: AiConversationStarterStyle(),
  user: User(),
  emptyStateText: Text("Error occurred"),
  loadingStateView: Text("Loading..."),
  theme: CometChatTheme(),
  )
Inheritance

Constructors

AIConversationStarterView({Key? key, User? user, Group? group, AIConversationStarterStyle? aiConversationStarterStyle, String? emptyStateText, String? errorStateText, CometChatTheme? theme, Widget customView(List<String> replies, BuildContext context)?, String? loadingStateText, String? loadingIconUrl, WidgetBuilder? loadingStateView, String? errorIconUrl, WidgetBuilder? errorStateView, WidgetBuilder? emptyStateView, String? emptyIconUrl, String? loadingIconPackageName, String? emptyIconPackageName, String? errorIconPackageName, Map<String, dynamic>? apiConfiguration})
const

Properties

aiConversationStarterStyle AIConversationStarterStyle?
aiConversationStarterStyle provides styling to the reply chips/bubbles
final
apiConfiguration Map<String, dynamic>?
apiConfiguration sets the api call configuration for ai conversation starter
final
customView Widget Function(List<String> replies, BuildContext context)?
customView gives conversation starter view
final
emptyIconPackageName String?
emptyIconPackageName package name for empty icon to be displayed when empty state
final
emptyIconUrl String?
emptyIconUrl used to set the empty icon
final
emptyStateText String?
emptyStateText text to be displayed when the replies are empty
final
emptyStateView WidgetBuilder?
emptyStateView returns view fow empty state
final
errorIconPackageName String?
errorIconPackageName package name for error icon to be displayed when error occur
final
errorIconUrl String?
errorIconUrl used to set the error icon
final
errorStateText String?
errorStateText text to be displayed when error occur
final
errorStateView WidgetBuilder?
errorStateView returns view for error state
final
group Group?
set Group object, one is mandatory either user or group
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadingIconPackageName String?
loadingIconPackageName package name for loading icon to be displayed when loading state
final
loadingIconUrl String?
loadingIconUrl used to set the loading icon
final
loadingStateText String?
loadingStateText text to be displayed when loading occur
final
loadingStateView WidgetBuilder?
loadingStateView returns view for loading state
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme CometChatTheme?
theme sets custom theme
final
user User?
set User object, one is mandatory either user or group
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<AIConversationStarterView>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited