VoicebotLabels class final

User-facing strings for the prebuilt UI kit, kept out of the widgets so they can be localized (HANDOFF: never hardcode user-facing strings). Defaults are English; pass a translated VoicebotLabels via VoicebotTheme.labels.

Annotations

Constructors

VoicebotLabels({String title = 'Assistant', String inputHint = 'Type a message…', String send = 'Send', String minimize = 'Minimize', String close = 'Close', String startVoice = 'Start voice', String muteMic = 'Mute', String unmuteMic = 'Unmute', String openAssistant = 'Open assistant', String statusConnecting = 'Connecting…', String statusReconnecting = 'Reconnecting…', String statusListening = 'Listening…', String statusSpeaking = 'Speaking…', String statusReady = 'Ready', String statusEnded = 'Conversation ended', String errorGeneric = 'Something went wrong. Please try again.', String emptyTranscript = 'Say hello or type a message to start.'})
const

Properties

close String
Close-button tooltip / a11y label.
final
emptyTranscript String
Placeholder shown in an empty transcript.
final
errorGeneric String
Shown when a session fails (the precise errors message stays in logs).
final
hashCode int
The hash code for this object.
no setterinherited
inputHint String
Text-input placeholder.
final
minimize String
Minimize-button tooltip / a11y label.
final
muteMic String
Mute tooltip / a11y label.
final
openAssistant String
VoiceButton a11y label / tooltip.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
send String
Send-button tooltip / a11y label.
final
startVoice String
Mic-start tooltip when voice has not begun.
final
statusConnecting String
final
statusEnded String
final
statusListening String
final
statusReady String
final
statusReconnecting String
final
statusSpeaking String
final
title String
Header title.
final
unmuteMic String
Unmute tooltip / a11y label.
final

Methods

copyWith({String? title, String? inputHint, String? send, String? minimize, String? close, String? startVoice, String? muteMic, String? unmuteMic, String? openAssistant, String? statusConnecting, String? statusReconnecting, String? statusListening, String? statusSpeaking, String? statusReady, String? statusEnded, String? errorGeneric, String? emptyTranscript}) VoicebotLabels
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