HatangChatStrings class
Every string the chat UI shows. Pass overrides to HatangChat.configure
(strings: {HatangLocale.vi: HatangChatStrings.vi.copyWith(...)}).
- Annotations
Constructors
- HatangChatStrings({required String open, required String close, required String placeholder, required String send, required String online, required String offline, required String backAt, required String typing, required String yourName, required String yourEmail, required String yourPhone, required String start, required String leaveEmail, required String attach, required String tooLarge, required String takePhoto, required String photoLibrary, required String chooseFile, required String uploading, required String unsupportedFile, required String openFile, required String failed, required String retry, required String you, required String team, required String today, required String yesterday, required String read, required String sent, required String newMessages, required String poweredBy, required String emailSaved, required String sendEmail, required String aiLabel, required String skip, required String reply, required String rateThanks, required String rateComment, required String rateSend, required String view, required String buy, required String wantBuy, required String total, required String pay, required String paid, required String order, required String transferNote, required String copy, required String copied, required String expired, required String scanToPay, required String payWithTeam, required String ratePrompt, required String shipping, required String discount, required String loadEarlier, required String connecting, required String offlineBanner, required String reconnect, required String updateApp, required String transferredToAgent, required String rateLimited, required String sendFailed, required String inboxTitle, required String noConversations, required String newConversation, required String conversationClosed, required String openStatus, required String inboxError, required String resolved, required String unreadOne, required String unreadOther, required String permissionDenied, required String messageFrom, required String errorGeneric, required String dismiss, required String callUs, required String emailUs})
-
Creates a full set of strings.
const
Properties
- aiLabel → String
-
Bot sender suffix.
final
- attach → String
-
Attach button label.
final
- backAt → String
-
Prefix before the next opening time.
final
- buy → String
-
Product card: buy.
final
- callUs → String
-
Header contact button that calls the business.
final
- chooseFile → String
-
Attachment menu: files.
final
- close → String
-
Close button label.
final
- connecting → String
-
Connecting banner.
final
- conversationClosed → String
-
Shown instead of the composer on a closed thread.
final
- copied → String
-
Shown after copying.
final
- copy → String
-
Copy button.
final
- discount → String
-
Order card: discount.
final
- dismiss → String
-
Dismiss action.
final
- emailSaved → String
-
Notice after an email was captured.
final
- emailUs → String
-
Header contact button that emails the business.
final
- errorGeneric → String
-
Generic error banner.
final
- expired → String
-
Payment request past its expiry.
final
- failed → String
-
Failed bubble label.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inboxError → String
-
Inbox load failed.
final
- inboxTitle → String
-
Inbox title.
final
- leaveEmail → String
-
Pre-chat form hint.
final
- loadEarlier → String
-
Load earlier history.
final
-
map
→ Map<
String, String> -
Flat map of every string (plural variants under
unread_one/unread_other), for t.no setter - messageFrom → String
-
Notification title (
{name}).final - newConversation → String
-
Inbox button and closed-thread action.
final
- newMessages → String
-
Badge suffix.
final
- noConversations → String
-
Inbox empty state.
final
- offline → String
-
Header subtitle while offline.
final
- offlineBanner → String
-
Offline banner.
final
- online → String
-
Header subtitle while online.
final
- open → String
-
Launcher label.
final
- openFile → String
-
Accessibility label of a file attachment.
final
- openStatus → String
-
Inbox: an open or pending conversation.
final
- order → String
-
Order card title.
final
- paid → String
-
Order card: paid.
final
- pay → String
-
Payment card: pay.
final
- payWithTeam → String
-
Payment card without external checkout or an in-app handler.
final
- permissionDenied → String
-
Permission denied notice.
final
- photoLibrary → String
-
Attachment menu: gallery.
final
- placeholder → String
-
Composer placeholder.
final
- poweredBy → String
-
Footer.
final
- rateComment → String
-
CSAT comment placeholder.
final
- rateLimited → String
-
Rate-limit notice.
final
- ratePrompt → String
-
CSAT card title.
final
- rateSend → String
-
CSAT submit.
final
- rateThanks → String
-
CSAT thanks.
final
- read → String
-
Read receipt.
final
- reconnect → String
-
Reconnect action.
final
- reply → String
-
Reply button (campaign teaser).
final
- resolved → String
-
Resolved badge.
final
- retry → String
-
Retry label.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scanToPay → String
-
Hint under the VietQR code.
final
- send → String
-
Send button label.
final
- sendEmail → String
-
Inline email form submit.
final
- sendFailed → String
-
Failed bubble hint.
final
- sent → String
-
Sent receipt.
final
- shipping → String
-
Order card: shipping.
final
- skip → String
-
Skip the optional email.
final
- start → String
-
Pre-chat form submit.
final
- takePhoto → String
-
Attachment menu: camera.
final
- team → String
-
Team fallback name.
final
- today → String
-
Day separator: today.
final
- tooLarge → String
-
File too large.
final
- total → String
-
Order card: total.
final
- transferNote → String
-
Payment card: transfer note.
final
- transferredToAgent → String
-
Handoff event row.
final
- typing → String
-
Typing indicator label.
final
- unreadOne → String
-
Unread, singular (
{count}).final - unreadOther → String
-
Unread, plural (
{count}).final - unsupportedFile → String
-
The gateway refuses the file type.
final
- updateApp → String
-
Outdated protocol banner.
final
- uploading → String
-
Under an attachment still uploading.
final
- view → String
-
Product card: view.
final
- wantBuy → String
-
Prefilled composer text when buying.
final
- yesterday → String
-
Day separator: yesterday.
final
- you → String
-
The visitor's own name label.
final
- yourEmail → String
-
Email field placeholder.
final
- yourName → String
-
Name field placeholder.
final
- yourPhone → String
-
Phone field placeholder.
final
Methods
-
copyWith(
{String? open, String? close, String? placeholder, String? send, String? online, String? offline, String? backAt, String? typing, String? yourName, String? yourEmail, String? yourPhone, String? start, String? leaveEmail, String? attach, String? tooLarge, String? takePhoto, String? photoLibrary, String? chooseFile, String? uploading, String? unsupportedFile, String? openFile, String? failed, String? retry, String? you, String? team, String? today, String? yesterday, String? read, String? sent, String? newMessages, String? poweredBy, String? emailSaved, String? sendEmail, String? aiLabel, String? skip, String? reply, String? rateThanks, String? rateComment, String? rateSend, String? view, String? buy, String? wantBuy, String? total, String? pay, String? paid, String? order, String? transferNote, String? copy, String? copied, String? expired, String? scanToPay, String? payWithTeam, String? ratePrompt, String? shipping, String? discount, String? loadEarlier, String? connecting, String? offlineBanner, String? reconnect, String? updateApp, String? transferredToAgent, String? rateLimited, String? sendFailed, String? inboxTitle, String? noConversations, String? newConversation, String? conversationClosed, String? openStatus, String? inboxError, String? resolved, String? unreadOne, String? unreadOther, String? permissionDenied, String? messageFrom, String? errorGeneric, String? dismiss, String? callUs, String? emailUs}) → HatangChatStrings - Copies with some strings replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
t(
String key, HatangLocale locale, [Map< String, Object?> ? params]) → String -
Looks up a flat
keywith{param}interpolation and_one/_otherplural resolution whenparamshas a numericcount. -
toString(
) → String -
A string representation of this object.
inherited
-
unread(
int count, HatangLocale locale) → String -
"3 new messages" in
locale.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
forLocale(
HatangLocale locale) → HatangChatStrings -
The built-in strings for
locale.
Constants
- en → const HatangChatStrings
- English.
- vi → const HatangChatStrings
- Vietnamese (product default).