AISmartRepliesView class
AISmartRepliesView is a widget that is rendered as the content view for AISmartRepliesExtension
AiSmartReplyView(
style: AiSmartReplyStyle(
replyTextStyle: TextStyle(
color: Colors.black,
fontWeight: FontWeight.bold,
fontSize: 14,
),
),
theme: CometChatTheme(),
);
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AISmartRepliesView
Constructors
-
AISmartRepliesView({Key? key, User? user, Group? group, AISmartRepliesStyle? style, CometChatTheme? theme, OnError? onError, String? emptyStateText, String? errorStateText, 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
-
apiConfiguration
→ Map<
String, dynamic> ? -
apiConfiguration sets the api configuration for smart replies
final
-
customView
→ Widget Function(List<
String> replies, BuildContext context)? -
customView gives smartReply 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 we get an error
final
- errorStateView → WidgetBuilder?
-
errorStateView returns view for error state
final
- group → Group?
-
group group object to show replies
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
- onError → OnError?
-
onError callback triggered in case any error happens when fetching replies
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → AISmartRepliesStyle?
-
style provides styling to the reply view
final
- theme → CometChatTheme?
-
theme sets custom theme
final
- user → User?
-
user user object to show replies
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< AISmartRepliesView> -
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