ChatHeader constructor
const
ChatHeader({
- required BotConfiguration configuration,
- Key? key,
- VoidCallback? onClose,
- VoidCallback? onClearHistory,
- VoidCallback? onExportChat,
- void onChangeLanguage(
- String locale
- void onChangeTheme(
- ThemeMode mode
- ThemeMode currentThemeMode = ThemeMode.system,
Creates a new chat header widget.
The configuration parameter is required and should contain the
bot's display information and styling preferences.
Implementation
const ChatHeader({
required this.configuration,
super.key,
this.onClose,
this.onClearHistory,
this.onExportChat,
this.onChangeLanguage,
this.onChangeTheme,
this.currentThemeMode = ThemeMode.system,
});