TickkiChatStrings constructor
const
TickkiChatStrings({
- String title = 'Chat with us',
- String onlineLabel = 'Online',
- String offlineLabel = "We'll get back to you",
- String inputPlaceholder = 'Type a message…',
- String sendButton = 'Send',
- String attachButton = 'Attach file',
- String preChatTitle = 'Before we start',
- String preChatSubtitle = 'Tell us a bit about you so we can help.',
- String preChatNameLabel = 'Name',
- String preChatEmailLabel = 'Email',
- String preChatSubmit = 'Start chat',
- String errorGeneric = 'Something went wrong. Please try again.',
- String errorRateLimited = 'Too many messages too fast — slow down a bit and retry.',
- String errorNoConnection = "Can't reach the chat server. Check your connection.",
- String emptyHistory = 'Start the conversation. An agent will reply soon.',
- String typingIndicator = 'Agent is typing…',
Implementation
const TickkiChatStrings({
this.title = 'Chat with us',
this.onlineLabel = 'Online',
this.offlineLabel = "We'll get back to you",
this.inputPlaceholder = 'Type a message…',
this.sendButton = 'Send',
this.attachButton = 'Attach file',
this.preChatTitle = 'Before we start',
this.preChatSubtitle = 'Tell us a bit about you so we can help.',
this.preChatNameLabel = 'Name',
this.preChatEmailLabel = 'Email',
this.preChatSubmit = 'Start chat',
this.errorGeneric = 'Something went wrong. Please try again.',
this.errorRateLimited =
'Too many messages too fast — slow down a bit and retry.',
this.errorNoConnection =
"Can't reach the chat server. Check your connection.",
this.emptyHistory = 'Start the conversation. An agent will reply soon.',
this.typingIndicator = 'Agent is typing…',
});