DOOChat constructor
const
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()?,
- 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()?,
- 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 DOOChat(
{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 DOOChatTheme(),
this.l10n = const DOOL10n(),
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);