ChatbotConfig constructor
const
ChatbotConfig({
- required Widget chatWidget,
- ChatbotPosition position = ChatbotPosition.bottomRight,
- IconData icon = Icons.chat_bubble_rounded,
- IconData closeIcon = Icons.close,
- Color? iconColor,
- Color? backgroundColor,
- double buttonSize = 56.0,
- double iconSize = 24.0,
- double windowWidth = 380.0,
- double windowHeight = 500.0,
- double margin = 16.0,
- double elevation = 6.0,
- double windowBorderRadius = 12.0,
- String? tooltip,
- Color? windowBackgroundColor,
- Color? windowBorderColor,
- double windowBorderWidth = 1.0,
- double windowElevation = 8.0,
- bool showBadge = false,
- Color? badgeColor,
- VoidCallback? onOpen,
- 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,
});