DOOChat class FlutterClientSdk
DOO chat widget
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DOOChat
- Annotations
Constructors
-
DOOChat({Key? key, required String baseUrl, required String inboxIdentifier, bool enablePersistence = true, DOOUser? user, PreferredSizeWidget? appBar, Future<
void> onEndReached()?, double? onEndReachedThreshold, void onMessageLongPress(BuildContext context, Message)?, void onMessageTap(Message)?, void onSendPressed(PartialText)?, void onTextChanged(String)?, bool showUserAvatars = true, bool showUserNames = true, DOOChatTheme theme = const DOOChatTheme(), DOOL10n l10n = const DOOL10n(), DateFormat? timeFormat, DateFormat? dateFormat, void onWelcome()?, void onPing()?, void onConfirmedSubscription()?, void onMessageReceived(DOOMessage)?, void onMessageSent(DOOMessage)?, void onMessageDelivered(DOOMessage)?, void onMessageUpdated(DOOMessage)?, void onPersistedMessagesRetrieved(List<DOOMessage> )?, void onMessagesRetrieved(List<DOOMessage> )?, void onConversationStartedTyping()?, void onConversationStoppedTyping()?, void onConversationIsOnline()?, void onConversationIsOffline()?, void onError(DOOClientException)?, bool isPresentedInDialog = false}) -
const
Properties
- appBar → PreferredSizeWidget?
-
Specifies a custom app bar for DOO page widget
final
- baseUrl → String
-
Installation url for DOO
final
- dateFormat → DateFormat?
-
See
Chat.dateFormat
final - enablePersistence → bool
-
Enables persistence of DOO 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 DOO 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 → DOOL10n
-
See DOOL10n
final
- onConfirmedSubscription → void Function()?
-
See DOOCallbacks.onConfirmedSubscription
final
- onConversationIsOffline → void Function()?
-
See DOOCallbacks.onConversationIsOffline
final
- onConversationIsOnline → void Function()?
-
See DOOCallbacks.onConversationIsOnline
final
- onConversationStartedTyping → void Function()?
-
See DOOCallbacks.onConversationStartedTyping
final
- onConversationStoppedTyping → void Function()?
-
See DOOCallbacks.onConversationStoppedTyping
final
-
onEndReached
→ Future<
void> Function()? -
See
ChatList.onEndReached
final - onEndReachedThreshold → double?
-
See
ChatList.onEndReachedThreshold
final - onError → void Function(DOOClientException)?
-
See DOOCallbacks.onError
final
- onMessageDelivered → void Function(DOOMessage)?
-
See DOOCallbacks.onMessageDelivered
final
- onMessageLongPress → void Function(BuildContext context, Message)?
-
See
Message.onMessageLongPress
final - onMessageReceived → void Function(DOOMessage)?
-
See DOOCallbacks.onMessageReceived
final
- onMessageSent → void Function(DOOMessage)?
-
See DOOCallbacks.onMessageSent
final
-
onMessagesRetrieved
→ void Function(List<
DOOMessage> )? -
See DOOCallbacks.onMessagesRetrieved
final
- onMessageTap → void Function(Message)?
-
See
Message.onMessageTap
final - onMessageUpdated → void Function(DOOMessage)?
-
See DOOCallbacks.onMessageUpdated
final
-
onPersistedMessagesRetrieved
→ void Function(List<
DOOMessage> )? -
See DOOCallbacks.onPersistedMessagesRetrieved
final
- onPing → void Function()?
-
See DOOCallbacks.onPing
final
- onSendPressed → void Function(PartialText)?
-
See
Input.onSendPressed
final - onTextChanged → void Function(String)?
-
See
Input.onTextChanged
final - onWelcome → void Function()?
-
See DOOCallbacks.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 → DOOChatTheme
-
final
- timeFormat → DateFormat?
-
See
Chat.timeFormat
final - user → DOOUser?
-
Custom user details to be attached to DOO contact
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _DOOChatState -
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