PapercupsIntl class
This class contains all the text that can be displayed by the widget.
Constructors
- PapercupsIntl({String historyFetchErrorText = 'There was an issue retrieving your details. Please try again!', String attachmentUploadErrorText = 'Failed to upload attachment', String attachmentUploadedText = 'Attachment uploaded', String textCopiedText = 'Text copied to clipboard', String attachmentUploadingText = 'Uploading...', String enterEmailPlaceholder = 'Enter your email', String newMessagePlaceholder = 'Start typing...', String noConnectionText = 'No Connection', String attachmentNamePlaceholder = 'No Name', String subtitle = 'How can we help you?', String loadingText = 'Loading...', String uploadedText = 'uploaded', String retryButtonLabel = 'Retry', String sendingText = 'Sending...', String imageText = 'Image', String companyName = 'Bot', String fileText = 'File', String sentText = 'Sent', String title = 'Welcome!', String? greeting})
-
This text will be shown if the showAgentAvailability is true and you are online.
This text will be shown if the showAgentAvailability is true and you are offline.
const
Properties
- attachmentNamePlaceholder → String
-
Text displayed when an attachment doesn't have a file name.
final
- attachmentUploadedText → String
-
Text displayed when an attachment has been uploaded.
final
- attachmentUploadErrorText → String
-
Error message displayed when an attachment could not be uploaded.
final
- attachmentUploadingText → String
-
Text displayed when an attachment is been uploaded.
final
- companyName → String
-
Company name to show on greeting.
final
- enterEmailPlaceholder → String
-
This is the placeholder text in the email input section.
final
- fileText → String
-
Text displayed on the tile where the user decides to upload a file.
final
- greeting → String?
-
This is the first message sent by you during the conversation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- historyFetchErrorText → String
-
Error message displayed when the customer history couldn't be fetched.
final
- imageText → String
-
Text displayed on the tile where the user decides to upload an image.
final
- loadingText → String
-
Text displayed when the chat is loading.
final
- newMessagePlaceholder → String
-
This is the placeholder text in the input section.
final
- noConnectionText → String
-
Text displayed when there's no Internet connection.
final
- retryButtonLabel → String
-
Label used in the retry button when the chat history couldn't be fetched.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendingText → String
-
Text to show while message is sending.
final
- sentText → String
-
Text to show when the message is sent
final
- subtitle → String
-
This is a smaller piece of text under the title.
final
- textCopiedText → String
-
Text displayed when a text has been copied after long press on a chat bubble.
final
- title → String
-
This is the top section of the widget, normally a welcome text.
final
- uploadedText → String
-
Text displayed after the percentage value of an attachment being uploaded.
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