Chatbot constructor
const
Chatbot({
- Key? key,
- required String apiKey,
- dynamic userId,
- String? userToken,
- Map<
String, dynamic> ? userProfile, - ChatbotEventHandler? onEvent,
- VoidCallback? onOpen,
- VoidCallback? onClose,
- VoidCallback? onReady,
- RobylonChatbotController? controller,
- bool showFloatingButton = true,
- bool enableAnimation = true,
- bool enableDebugLogs = false,
Implementation
const Chatbot({
super.key,
required this.apiKey,
this.userId,
this.userToken,
this.userProfile,
this.onEvent,
this.onOpen,
this.onClose,
this.onReady,
this.controller,
this.showFloatingButton = true,
this.enableAnimation = true,
this.enableDebugLogs = false,
});