AIConversationSummaryView class
AIConversationSummaryView is a widget that is rendered as the content view for AIConversationSummaryView
AIConversationSummaryView(
style: AiConversationStarterStyle(),
user: User(),
emptyStateText: Text("Error occurred"),
loadingStateView: Text("Loading..."),
theme: CometChatTheme(),
)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AIConversationSummaryView
Constructors
-
AIConversationSummaryView({Key? key, User? user, Group? group, AIConversationSummaryStyle? aiConversationSummaryStyle, String? title, Widget customView(String summary, BuildContext context)?, String? errorIconUrl, CometChatTheme? theme, String? loadingStateText, String? loadingIconUrl, WidgetBuilder? loadingStateView, WidgetBuilder? errorStateView, WidgetBuilder? emptyStateView, String? emptyIconUrl, dynamic onCloseIconTap(Map<
String, dynamic> id)?, String? emptyStateText, String? errorStateText, String? errorIconPackageName, String? emptyIconPackageName, String? loadingIconPackageName, Map<String, dynamic> ? apiConfiguration}) -
const
Properties
- aiConversationSummaryStyle → AIConversationSummaryStyle?
-
aiConversationSummaryStyle provides styling to the reply chips/bubbles
final
-
apiConfiguration
→ Map<
String, dynamic> ? -
apiConfiguration sets the api configuration for ai summary view
final
- customView → Widget Function(String summary, BuildContext context)?
-
customView gives conversation starter view
final
- emptyIconPackageName → String?
-
emptyIconPackageName used to set the empty icon package name
final
- emptyIconUrl → String?
-
emptyIconUrl used to set the empty icon
final
- emptyStateText → String?
-
loadingStateText used to set the empty state text
final
- emptyStateView → WidgetBuilder?
-
emptyStateView returns view fow empty state
final
- errorIconPackageName → String?
-
errorIconPackageName used to set the error icon package name
final
- errorIconUrl → String?
-
errorIconUrl used to set the error icon
final
- errorStateText → String?
-
configuration
used to set the error state textfinal - 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 used to set the loading icon package name
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
-
onCloseIconTap
→ dynamic Function(Map<
String, dynamic> id)? -
onCloseIconTap used to set the loading icon
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → CometChatTheme?
-
theme sets custom theme
final
- title → String?
-
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< AIConversationSummaryView> -
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, int wrapWidth = 65}) → 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