SquadweChat class FlutterClientSdk

Squadwe chat widget

Inheritance

Constructors

SquadweChat({Key? key, required String baseUrl, required String inboxIdentifier, bool enablePersistence = true, SquadweUser? user, PreferredSizeWidget? appBar, Future<void> onEndReached()?, double? onEndReachedThreshold, void onMessageLongPress(Message)?, void onMessageTap(Message)?, void onSendPressed(PartialText)?, void onTextChanged(String)?, bool showUserAvatars = true, bool showUserNames = true, SquadweChatTheme theme = const SquadweChatTheme(), SquadweL10n l10n = const SquadweL10n(), DateFormat? timeFormat, DateFormat? dateFormat, void onWelcome()?, void onPing()?, void onConfirmedSubscription()?, void onMessageReceived(SquadweMessage)?, void onMessageSent(SquadweMessage)?, void onMessageDelivered(SquadweMessage)?, void onMessageUpdated(SquadweMessage)?, void onPersistedMessagesRetrieved(List<SquadweMessage>)?, void onMessagesRetrieved(List<SquadweMessage>)?, void onConversationStartedTyping()?, void onConversationStoppedTyping()?, void onConversationIsOnline()?, void onConversationIsOffline()?, void onError(SquadweClientException)?, bool isPresentedInDialog = false})
const

Properties

appBar PreferredSizeWidget?
Specifies a custom app bar for squadwe page widget
final
baseUrl String
Installation url for squadwe
final
dateFormat → DateFormat?
See Chat.dateFormat
final
enablePersistence bool
Enables persistence of squadwe client instance's contact, conversation and messages to disk for convenience.
final
hashCode int
The hash code for this object.
no setterinherited
inboxIdentifier String
Identifier for target squadwe inbox.
final
isPresentedInDialog bool
Horizontal padding is reduced if set to true
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
l10n SquadweL10n
See SquadweL10n
final
onConfirmedSubscription → void Function()?
See SquadweCallbacks.onConfirmedSubscription
final
onConversationIsOffline → void Function()?
See SquadweCallbacks.onConversationIsOffline
final
onConversationIsOnline → void Function()?
See SquadweCallbacks.onConversationIsOnline
final
onConversationStartedTyping → void Function()?
See SquadweCallbacks.onConversationStartedTyping
final
onConversationStoppedTyping → void Function()?
See SquadweCallbacks.onConversationStoppedTyping
final
onEndReached Future<void> Function()?
See ChatList.onEndReached
final
onEndReachedThreshold double?
See ChatList.onEndReachedThreshold
final
onError → void Function(SquadweClientException)?
See SquadweCallbacks.onError
final
onMessageDelivered → void Function(SquadweMessage)?
See SquadweCallbacks.onMessageDelivered
final
onMessageLongPress → void Function(Message)?
See Message.onMessageLongPress
final
onMessageReceived → void Function(SquadweMessage)?
See SquadweCallbacks.onMessageReceived
final
onMessageSent → void Function(SquadweMessage)?
See SquadweCallbacks.onMessageSent
final
onMessagesRetrieved → void Function(List<SquadweMessage>)?
See SquadweCallbacks.onMessagesRetrieved
final
onMessageTap → void Function(Message)?
See Message.onMessageTap
final
onMessageUpdated → void Function(SquadweMessage)?
See SquadweCallbacks.onMessageUpdated
final
onPersistedMessagesRetrieved → void Function(List<SquadweMessage>)?
See SquadweCallbacks.onPersistedMessagesRetrieved
final
onPing → void Function()?
See SquadweCallbacks.onPing
final
onSendPressed → void Function(PartialText)?
See Input.onSendPressed
final
onTextChanged → void Function(String)?
See Input.onTextChanged
final
onWelcome → void Function()?
See SquadweCallbacks.onWelcome
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showUserAvatars bool
Show avatars for received messages.
final
showUserNames bool
Show user names for received messages.
final
theme SquadweChatTheme
final
timeFormat → DateFormat?
See Chat.timeFormat
final
user SquadweUser?
Custom user details to be attached to squadwe contact
final

Methods

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