ChatwootChat constructor
const
ChatwootChat({
- Key? key,
- required String baseUrl,
- required String inboxIdentifier,
- bool enablePersistence = true,
- ChatwootUser? user,
- PreferredSizeWidget? appBar,
- Future<
void> onEndReached()?, - double? onEndReachedThreshold,
- void onMessageLongPress(
- BuildContext context,
- Message
- void onMessageTap(
- Message
- void onSendPressed(
- PartialText
- void onTextChanged()?,
- bool showUserAvatars = true,
- bool showUserNames = true,
- ChatwootChatTheme theme = const ChatwootChatTheme(),
- ChatwootL10n l10n = const ChatwootL10n(),
- DateFormat? timeFormat,
- DateFormat? dateFormat,
- void onWelcome()?,
- void onPing()?,
- void onConfirmedSubscription()?,
- void onMessageReceived()?,
- void onMessageSent()?,
- void onMessageDelivered()?,
- void onMessageUpdated()?,
- void onPersistedMessagesRetrieved()?,
- void onMessagesRetrieved()?,
- void onConversationStartedTyping()?,
- void onConversationStoppedTyping()?,
- void onConversationIsOnline()?,
- void onConversationIsOffline()?,
- void onError()?,
- bool isPresentedInDialog = false,
Implementation
const ChatwootChat(
{Key? key,
required this.baseUrl,
required this.inboxIdentifier,
this.enablePersistence = true,
this.user,
this.appBar,
this.onEndReached,
this.onEndReachedThreshold,
this.onMessageLongPress,
this.onMessageTap,
this.onSendPressed,
this.onTextChanged,
this.showUserAvatars = true,
this.showUserNames = true,
this.theme = const ChatwootChatTheme(),
this.l10n = const ChatwootL10n(),
this.timeFormat,
this.dateFormat,
this.onWelcome,
this.onPing,
this.onConfirmedSubscription,
this.onMessageReceived,
this.onMessageSent,
this.onMessageDelivered,
this.onMessageUpdated,
this.onPersistedMessagesRetrieved,
this.onMessagesRetrieved,
this.onConversationStartedTyping,
this.onConversationStoppedTyping,
this.onConversationIsOnline,
this.onConversationIsOffline,
this.onError,
this.isPresentedInDialog = false})
: super(key: key);