ChatConfig constructor

ChatConfig({
  1. required String apiUrl,
  2. bool enableTypingIndicators = true,
  3. bool enableReadReceipts = true,
  4. bool enableOnlineStatus = true,
  5. bool autoMarkAsRead = true,
  6. int connectionTimeout = 10,
  7. int maxReconnectionAttempts = 5,
  8. int chatRoomRefreshInterval = 30,
  9. String? userId,
  10. String? token,
  11. Map<String, String>? additionalHeaders,
  12. Map<String, dynamic>? socketParams,
  13. bool debugMode = false,
  14. Future<String> fileUploadHandler(
    1. 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,
});