AIChatviewController class

Constructors

AIChatviewController({List<ChatModel>? initialMessageList, ScrollController? scrollController, TextFieldDecoration? textFieldDecoration, TextEditingController? textEdittingController, TypewriterAnimatedConfiguration? typewriterAnimatedConfiguration})

Properties

hashCode int
The hash code for this object.
no setterinherited
initialMessageList List<ChatModel>
Represents initial message list in chat which can be add by user.
getter/setter pair
messageStreamController StreamController<List<ChatModel>>
Represents message stream of chat
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController
getter/setter pair
setTypingIndicator bool
Setter for changing values of typingIndicator
no getter
showTypingIndicator bool
Getter for typingIndicator value instead of accessing _showTypingIndicator.value for better accessibility.
no setter
textEdittingController TextEditingController
Gives us control of the TextEditting controller of the TextField of the current user
getter/setter pair
textFieldDecoration TextFieldDecoration
textFieldDecoration For TextFormfield Decoration
getter/setter pair
typewriterAnimatedConfiguration TypewriterAnimatedConfiguration
Configuration for Animated Typewriter functionality as in a chatbot.
getter/setter pair
typingIndicatorNotifier ValueListenable<bool>
TypingIndicator as ValueNotifier for GroupedChatList widget's typingIndicator ValueListenableBuilder. Use this for listening typing indicators
no setter

Methods

addMessage(ChatModel message) → void
Used to add message in message list.
clearMessage() → void
Used to clearing message in message list.
dispose() → void
Used to dispose ValueNotifiers and Streams.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scrollToBottom() → void
toString() String
A string representation of this object.
inherited

Operators

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