AIAssistBotView class
AIAssistBotView is a widget that is rendered as the content view for AIAssistBotExtension
AIAssistBotView(
style: AIAssistBotStyle(),
user: User(),
emptyStateText: Text("Error occurred"),
loadingStateView: Text("Loading..."),
theme: CometChatTheme(),
loggedInUser: loggedInUser
)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AIAssistBotView
Constructors
-
AIAssistBotView({Key? key, User? user, Group? group, AIAssistBotStyle? assistBotStyle, String? title, String? errorIconUrl, CometChatTheme? theme, String? loadingStateText, String? loadingIconUrl, WidgetBuilder? loadingStateView, WidgetBuilder? errorStateView, WidgetBuilder? emptyStateView, String? emptyIconUrl, dynamic onCloseIconTap()?, required User aiBot, String? controllerTag, required User loggedInUser, Map<
String, dynamic> ? apiConfiguration}) -
const
Properties
- aiBot → User
-
aiBot instance of bot in conversation
final
-
apiConfiguration
→ Map<
String, dynamic> ? -
apiConfiguration sets the configuration for ask bot api call
final
- assistBotStyle → AIAssistBotStyle?
-
assistBotStyle passes style
final
- controllerTag → String?
-
controllerTag tag to create from , if this is passed its parent responsibility to close this
final
- emptyIconUrl → String?
-
emptyIconUrl used to set the empty icon
final
- emptyStateView → WidgetBuilder?
-
emptyStateView returns view fow empty state
final
- errorIconUrl → String?
-
errorIconUrl used to set the error icon
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
- 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
- loggedInUser → User
-
loggedInUser instance of logged in user
final
- onCloseIconTap → dynamic Function()?
-
onCloseIconTap used to set custom action on close of view
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → CometChatTheme?
-
theme sets custom theme
final
- title → String?
-
set title set the tile for assist bot
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< AIAssistBotView> -
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