RichAction.changeLanguage constructor

  1. @FreezedUnionValue.new('change_language')
const RichAction.changeLanguage({
  1. 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;