ChatView2 class

Inheritance

Constructors

ChatView2({Key? key, required ChatController chatController, required ChatUser currentUser, String local = "en", StringMessageCallBack? onSendTap, ProfileCircleConfiguration? profileCircleConfig, ChatBubbleConfiguration? chatBubbleConfig, RepliedMessageConfiguration? repliedMessageConfig, SwipeToReplyConfiguration? swipeToReplyConfig, ReplyPopupConfiguration? replyPopupConfig, ReactionPopupConfiguration? reactionPopupConfig, VoidCallBackWithFuture? loadMoreData, Widget? loadingWidget, MessageConfiguration? messageConfig, bool? isLastPage, Widget? appBar, ChatBackgroundConfiguration? chatBackgroundConfig, TypeIndicatorConfiguration? typeIndicatorConfig, ReplyMessageWithReturnWidget? sendMessageBuilder, bool showTypingIndicator = false, SendMessageConfiguration? sendMessageConfig, VoidCallBack? onChatListTap, required ChatView2State chatview2State, Chatview2StateConfiguration? chatview2StateConfig, FeatureActiveConfig featureActiveConfig = const FeatureActiveConfig()})
const

Properties

appBar Widget?
Provides parameter so user can assign chatview2Appbar.
final
chatBackgroundConfig ChatBackgroundConfiguration
Allow user to give customisation to background of chat
final
chatBubbleConfig ChatBubbleConfiguration?
Provides configurations related to chat bubble such as padding, margin, max width etc.
final
chatController ChatController
Provides controller for accessing few function for running chat.
final
chatview2State ChatView2State
Provides current state of chat.
final
chatview2StateConfig Chatview2StateConfiguration?
Provides configuration for chat view state appearance and functionality.
final
currentUser ChatUser
Provides current user which is sending messages.
final
featureActiveConfig FeatureActiveConfig
Provides configuration for turn on/off specific features.
final
hashCode int
The hash code for this object.
no setterinherited
isLastPage bool?
Provides flag if there is no more next data left in list.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadingWidget Widget?
Provides widget for loading view while pagination is enabled.
final
loadMoreData VoidCallBackWithFuture?
Provides callback when user actions reaches to top and needs to load more chat
final
local String
final
messageConfig MessageConfiguration?
Allow user to giving customisation different types messages.
final
onChatListTap VoidCallBack?
Provides callback when user tap on chat list.
final
onSendTap StringMessageCallBack?
Provides call back when user tap on send button in text field. It returns message, reply message and message type.
final
profileCircleConfig ProfileCircleConfiguration?
Provides configuration related to user profile circle avatar.
final
reactionPopupConfig ReactionPopupConfiguration?
Provides configuration for reaction pop up appearance.
final
repliedMessageConfig RepliedMessageConfiguration?
Provides configuration for replied message view which is located upon chat bubble.
final
replyPopupConfig ReplyPopupConfiguration?
Provides configuration for reply snack bar's appearance and options.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendMessageBuilder ReplyMessageWithReturnWidget?
Provides builder which helps you to make custom text field and functionality.
final
sendMessageConfig SendMessageConfiguration?
Provides configuration of default text field in chat.
final
showTypingIndicator bool
Allow user to show typing indicator.
final
swipeToReplyConfig SwipeToReplyConfiguration?
Provides configurations related to swipe chat bubble which triggers when user swipe chat bubble.
final
typeIndicatorConfig TypeIndicatorConfiguration?
Allow user to giving customisation typing indicator.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ChatView2>
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