ChatLayout constructor
const
ChatLayout({
- Key? key,
- Widget? sendIcon,
- FormlessTheme? theme,
- void onComplete()?,
- void onError(
- String error
- required AiProvider provider,
- required String apiKey,
- String? model,
- List<
QuestionsModel> questions = kDefaultFormlessQuestions, - String? unexpectedErrorMessage = 'Something went wrong, please try again.',
Implementation
const ChatLayout({
super.key,
this.sendIcon,
this.theme,
this.onComplete,
this.onError,
required this.provider,
required this.apiKey,
this.model,
this.questions = kDefaultFormlessQuestions,
this.unexpectedErrorMessage = 'Something went wrong, please try again.',
});