custom static method
DatumConfig<DatumEntityInterface>
custom({
- required DatumConfig<
DatumEntityInterface> base, - Duration? autoSyncInterval,
- bool? autoStartSync,
- Duration? syncTimeout,
- bool? enableLogging,
- LogLevel? logLevel,
- bool? enablePerformanceLogging,
- Duration? performanceLogThreshold,
- Duration? changeCacheDuration,
- int? maxChangeCacheSize,
- Duration? changeCacheCleanupInterval,
- int? remoteSyncBatchSize,
- int? remoteStreamBatchSize,
- int? progressEventFrequency,
- Duration? remoteEventDebounceTime,
Creates a custom configuration by extending an existing preset.
This allows you to start with a preset and customize specific values.
Implementation
static DatumConfig custom({
required DatumConfig base,
Duration? autoSyncInterval,
bool? autoStartSync,
Duration? syncTimeout,
bool? enableLogging,
LogLevel? logLevel,
bool? enablePerformanceLogging,
Duration? performanceLogThreshold,
Duration? changeCacheDuration,
int? maxChangeCacheSize,
Duration? changeCacheCleanupInterval,
int? remoteSyncBatchSize,
int? remoteStreamBatchSize,
int? progressEventFrequency,
Duration? remoteEventDebounceTime,
}) {
return base.copyWith(
autoSyncInterval: autoSyncInterval,
autoStartSync: autoStartSync,
syncTimeout: syncTimeout,
enableLogging: enableLogging,
logLevel: logLevel,
enablePerformanceLogging: enablePerformanceLogging,
performanceLogThreshold: performanceLogThreshold,
changeCacheDuration: changeCacheDuration,
maxChangeCacheSize: maxChangeCacheSize,
changeCacheCleanupInterval: changeCacheCleanupInterval,
remoteSyncBatchSize: remoteSyncBatchSize,
remoteStreamBatchSize: remoteStreamBatchSize,
progressEventFrequency: progressEventFrequency,
remoteEventDebounceTime: remoteEventDebounceTime,
);
}