ChatHeader constructor

const ChatHeader({
  1. required BotConfiguration configuration,
  2. Key? key,
  3. VoidCallback? onClose,
  4. VoidCallback? onClearHistory,
  5. VoidCallback? onExportChat,
  6. void onChangeLanguage(
    1. String locale
    )?,
  7. void onChangeTheme(
    1. ThemeMode mode
    )?,
  8. 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,
});