EcodeskProps class

This contains all the possible configurations for the chat widget.

Constructors

EcodeskProps({required String accountId, EcodeskCustomerMetadata? customer, Widget closeIcon = const Icon(Icons.close_rounded), VoidCallback? closeAction, bool scrollEnabled = true, bool floatingSendMessage = false, bool requireEmailUpfront = false, Widget? sendIcon, void onMessageBubbleTap(EcodeskMessage)?, EcodeskStyle style = const EcodeskStyle(), EcodeskIntl translations = const EcodeskIntl()})
const

Properties

accountId String
Required to create the widget, identifies the account.
final
baseUrl String
If you are self-hosting ecodesk, this base URL should be changed.
no setter
closeAction VoidCallback?
Function to handle closing the widget. If not null, close button will be shown.
final
closeIcon Widget
This is the close button displayed in the header section.
final
customer EcodeskCustomerMetadata?
This is the data that you will see on your dashboard such as the email or the name of the user.
final
floatingSendMessage bool
Set to true in order to make the send message section float
final
hashCode int
The hash code for this object.
no setterinherited
onMessageBubbleTap → void Function(EcodeskMessage)?
Function to handle message bubble tap action.
final
requireEmailUpfront bool
If you want to require unidentified customers to provide their email before they can message you. Not recommended for apps.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollEnabled bool
This allows you to choose if you want to show your status. Whether or not to allow scrolling.
final
sendIcon Widget?
Message send icon in the chat text field
final
style EcodeskStyle
This class contains all the styling options used by the widget.
final
translations EcodeskIntl
This contains all the texts that can be displayed by the widget.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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