RichAction.changeLanguage constructor
- @FreezedUnionValue.new('change_language')
- required String locale,
Silent action: switch the chat UI language live to locale. Emitted
by the backend's change_language platform tool and carried on
RichContentResponse.actions (never rendered as a button). The
action handler dispatches it straight to ChatViewModel.setLocale.
Implementation
@FreezedUnionValue('change_language')
const factory RichAction.changeLanguage({required String locale}) =
ChangeLanguageAction;