SolevatoChat class FlutterClientSdk

solevato chat widget

Inheritance

Constructors

SolevatoChat.new({Key? key, required String inboxIdentifier, bool enablePersistence = true, SolevatoUser? 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, SolevatoChatTheme theme = const SolevatoChatTheme(), SolevatoL10n l10n = const SolevatoL10n(), DateFormat? timeFormat, DateFormat? dateFormat, void onWelcome()?, void onPing()?, void onConfirmedSubscription()?, void onMessageReceived(SolevatoMessage)?, void onMessageSent(SolevatoMessage)?, void onMessageDelivered(SolevatoMessage)?, void onMessageUpdated(SolevatoMessage)?, void onPersistedMessagesRetrieved(List<SolevatoMessage>)?, void onMessagesRetrieved(List<SolevatoMessage>)?, void onConversationStartedTyping()?, void onConversationStoppedTyping()?, void onConversationIsOnline()?, void onConversationIsOffline()?, void onError(SolevatoClientException)?, bool isPresentedInDialog = false})
const

Properties

appBar PreferredSizeWidget?
Specifies a custom app bar for solevato page widget
final
dateFormat → DateFormat?
See Chat.dateFormat
final
enablePersistence bool
Enables persistence of solevato 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 solevato 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 SolevatoL10n
See SolevatoL10n
final
onConfirmedSubscription → void Function()?
See SolevatoCallbacks.onConfirmedSubscription
final
onConversationIsOffline → void Function()?
See SolevatoCallbacks.onConversationIsOffline
final
onConversationIsOnline → void Function()?
See SolevatoCallbacks.onConversationIsOnline
final
onConversationStartedTyping → void Function()?
See SolevatoCallbacks.onConversationStartedTyping
final
onConversationStoppedTyping → void Function()?
See SolevatoCallbacks.onConversationStoppedTyping
final
onEndReached Future<void> Function()?
See ChatList.onEndReached
final
onEndReachedThreshold double?
See ChatList.onEndReachedThreshold
final
onError → void Function(SolevatoClientException)?
See SolevatoCallbacks.onError
final
onMessageDelivered → void Function(SolevatoMessage)?
See SolevatoCallbacks.onMessageDelivered
final
onMessageLongPress → void Function(Message)?
See Message.onMessageLongPress
final
onMessageReceived → void Function(SolevatoMessage)?
See SolevatoCallbacks.onMessageReceived
final
onMessageSent → void Function(SolevatoMessage)?
See SolevatoCallbacks.onMessageSent
final
onMessagesRetrieved → void Function(List<SolevatoMessage>)?
See SolevatoCallbacks.onMessagesRetrieved
final
onMessageTap → void Function(Message)?
See Message.onMessageTap
final
onMessageUpdated → void Function(SolevatoMessage)?
See SolevatoCallbacks.onMessageUpdated
final
onPersistedMessagesRetrieved → void Function(List<SolevatoMessage>)?
See SolevatoCallbacks.onPersistedMessagesRetrieved
final
onPing → void Function()?
See SolevatoCallbacks.onPing
final
onSendPressed → void Function(PartialText)?
See Input.onSendPressed
final
onTextChanged → void Function(String)?
See Input.onTextChanged
final
onWelcome → void Function()?
See SolevatoCallbacks.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 SolevatoChatTheme
final
timeFormat → DateFormat?
See Chat.timeFormat
final
user SolevatoUser?
Custom user details to be attached to solevato contact
final

Methods

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