ChatbotConfig constructor

const ChatbotConfig({
  1. required Widget chatWidget,
  2. ChatbotPosition position = ChatbotPosition.bottomRight,
  3. IconData icon = Icons.chat_bubble_rounded,
  4. IconData closeIcon = Icons.close,
  5. Color? iconColor,
  6. Color? backgroundColor,
  7. double buttonSize = 56.0,
  8. double iconSize = 24.0,
  9. double windowWidth = 380.0,
  10. double windowHeight = 500.0,
  11. double margin = 16.0,
  12. double elevation = 6.0,
  13. double windowBorderRadius = 12.0,
  14. String? tooltip,
  15. Color? windowBackgroundColor,
  16. Color? windowBorderColor,
  17. double windowBorderWidth = 1.0,
  18. double windowElevation = 8.0,
  19. bool showBadge = false,
  20. Color? badgeColor,
  21. VoidCallback? onOpen,
  22. VoidCallback? onClose,
})

Implementation

const ChatbotConfig({
  required this.chatWidget,
  this.position = ChatbotPosition.bottomRight,
  this.icon = Icons.chat_bubble_rounded,
  this.closeIcon = Icons.close,
  this.iconColor,
  this.backgroundColor,
  this.buttonSize = 56.0,
  this.iconSize = 24.0,
  this.windowWidth = 380.0,
  this.windowHeight = 500.0,
  this.margin = 16.0,
  this.elevation = 6.0,
  this.windowBorderRadius = 12.0,
  this.tooltip,
  this.windowBackgroundColor,
  this.windowBorderColor,
  this.windowBorderWidth = 1.0,
  this.windowElevation = 8.0,
  this.showBadge = false,
  this.badgeColor,
  this.onOpen,
  this.onClose,
});