ConversationWidget constructor

const ConversationWidget({
  1. Key? key,
  2. double? width,
  3. double? height,
  4. bool showTextInput = true,
  5. required String token,
  6. required String flavor,
  7. required String aiRestBaseUrl,
  8. required String aiWsBaseUrl,
  9. String? initialConversationId,
  10. required void onNewConversationIdGenerated(
    1. String newConversationId
    ),
  11. required void onErrorOccurred(
    1. String error
    ),
  12. required Color? primaryColor,
  13. required Color? primaryText,
  14. required Color? secondaryText,
  15. required Color? alternateColor,
  16. required Color? primaryBackground,
  17. required Color? secondaryBackground,
  18. required Color? errorColor,
  19. required TextStyle? bodyMediumStyle,
  20. required TextStyle? labelMediumStyle,
  21. required TextStyle? bodySmallStyle,
  22. required SendCommandCallback handleEmbeddedWidgetCommand,
})

Implementation

const ConversationWidget({
  Key? key,
  this.width,
  this.height,
  this.showTextInput = true,
  required this.token,
  required this.flavor,
  required this.aiRestBaseUrl,
  required this.aiWsBaseUrl,
  this.initialConversationId,
  required this.onNewConversationIdGenerated,
  required this.onErrorOccurred,
  required this.primaryColor,
  required this.primaryText,
  required this.secondaryText,
  required this.alternateColor,
  required this.primaryBackground,
  required this.secondaryBackground,
  required this.errorColor,
  required this.bodyMediumStyle,
  required this.labelMediumStyle,
  required this.bodySmallStyle,
  required this.handleEmbeddedWidgetCommand,
}) : super(key: key);