ChatConfig constructor
ChatConfig({
- required String apiUrl,
- bool enableTypingIndicators = true,
- bool enableReadReceipts = true,
- bool enableOnlineStatus = true,
- bool autoMarkAsRead = true,
- int connectionTimeout = 10,
- int maxReconnectionAttempts = 5,
- int chatRoomRefreshInterval = 30,
- String? userId,
- String? token,
- Map<
String, String> ? additionalHeaders, - Map<
String, dynamic> ? socketParams, - bool debugMode = false,
- Future<
String> fileUploadHandler(- String filePath
Constructor
Implementation
ChatConfig({
required this.apiUrl,
this.enableTypingIndicators = true,
this.enableReadReceipts = true,
this.enableOnlineStatus = true,
this.autoMarkAsRead = true,
this.connectionTimeout = 10,
this.maxReconnectionAttempts = 5,
this.chatRoomRefreshInterval = 30,
this.userId,
this.token,
this.additionalHeaders,
this.socketParams,
this.debugMode = false,
this.fileUploadHandler,
});