BotConfig.setConfig constructor
BotConfig.setConfig({
- required String botId,
- required BuildContext context,
- dynamic enableHistory,
- dynamic enableSpeech,
- dynamic enableCloseButton,
Implementation
BotConfig.setConfig({
required String botId,
required BuildContext context,
enableHistory,
enableSpeech,
enableCloseButton,
}) {
this.context = context;
this.botId = botId;
this.enableHistory = enableHistory ?? false;
this.enableSpeech = enableSpeech ?? false;
this.enableCloseButton = enableCloseButton ?? true;
this.botUrl =
"$BASE_URL?botId=${this.botId}&enableHistory=${this.enableHistory.toString()}&ym.payload=";
}