ChatConfig.withEncryption constructor
ChatConfig.withEncryption({})
Create configuration with encryption enabled.
Implementation
factory ChatConfig.withEncryption({
required String databasePath,
required String encryptionKey,
bool enableLogging = false,
int maxRetryAttempts = 10,
Duration heartbeatInterval = const Duration(seconds: 30),
Duration syncInterval = const Duration(minutes: 5),
}) {
return ChatConfig(
databasePath: databasePath,
encryptionKey: encryptionKey,
enableLogging: enableLogging,
maxRetryAttempts: maxRetryAttempts,
heartbeatInterval: heartbeatInterval,
syncInterval: syncInterval,
);
}