ChatLayout constructor

const ChatLayout({
  1. Key? key,
  2. Widget? sendIcon,
  3. FormlessTheme? theme,
  4. void onComplete(
    1. Map<String, dynamic> data
    )?,
  5. void onError(
    1. String error
    )?,
  6. required AiProvider provider,
  7. required String apiKey,
  8. String? model,
  9. List<QuestionsModel> questions = kDefaultFormlessQuestions,
  10. String? unexpectedErrorMessage = 'Something went wrong, please try again.',
  11. FormlessOptionsSheetPresenter? optionsSheetPresenter,
})

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.',
  this.optionsSheetPresenter,
});