copyWith method
Creates a copy with updated fields.
Implementation
ChatConfig copyWith({
String? databasePath,
String? encryptionKey,
bool? enableLogging,
int? maxRetryAttempts,
Duration? heartbeatInterval,
Duration? syncInterval,
}) {
return ChatConfig(
databasePath: databasePath ?? this.databasePath,
encryptionKey: encryptionKey ?? this.encryptionKey,
enableLogging: enableLogging ?? this.enableLogging,
maxRetryAttempts: maxRetryAttempts ?? this.maxRetryAttempts,
heartbeatInterval: heartbeatInterval ?? this.heartbeatInterval,
syncInterval: syncInterval ?? this.syncInterval,
);
}