DatumConfigPresets class abstract
Configuration presets for common use cases.
These presets provide optimized configurations for different scenarios:
- development: Verbose logging, short timeouts, frequent cleanup
- production: Optimized performance, longer timeouts, minimal logging
- highPerformance: Maximum performance with large batches and minimal overhead
- lowMemory: Memory-efficient with small caches and frequent cleanup
- testing: Optimized for testing with minimal logging and fast timeouts
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
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}) → DatumConfig<DatumEntityInterface> - Creates a custom configuration by extending an existing preset.
-
development(
) → DatumConfig< DatumEntityInterface> - Configuration optimized for development environments.
-
highPerformance(
) → DatumConfig< DatumEntityInterface> - Configuration optimized for maximum performance.
-
lowMemory(
) → DatumConfig< DatumEntityInterface> - Configuration optimized for low memory usage.
-
offlineFirst(
) → DatumConfig< DatumEntityInterface> - Configuration for offline-first applications.
-
production(
) → DatumConfig< DatumEntityInterface> - Configuration optimized for production environments.
-
realTime(
) → DatumConfig< DatumEntityInterface> - Configuration for real-time applications.
-
testing(
) → DatumConfig< DatumEntityInterface> - Configuration optimized for testing environments.