ReplicatorConfiguration constructor Null safety
- {required Database database,
- required Endpoint target,
- ReplicatorType replicatorType = ReplicatorType.pushAndPull,
- bool continuous = false,
- Authenticator? authenticator,
- Uint8List? pinnedServerCertificate,
- Map<
String, String> ? headers, - List<
String> ? channels, - List<
String> ? documentIds, - ReplicationFilter? pushFilter,
- ReplicationFilter? pullFilter,
- ConflictResolver? conflictResolver,
- bool enableAutoPurge = true,
- Duration? heartbeat,
- int? maxAttempts,
- Duration? maxAttemptWaitTime}
Creates a configuration for a Replicator.
Implementation
ReplicatorConfiguration({
required this.database,
required this.target,
this.replicatorType = ReplicatorType.pushAndPull,
this.continuous = false,
this.authenticator,
this.pinnedServerCertificate,
this.headers,
this.channels,
this.documentIds,
this.pushFilter,
this.pullFilter,
this.conflictResolver,
this.enableAutoPurge = true,
Duration? heartbeat,
int? maxAttempts,
Duration? maxAttemptWaitTime,
}) {
this
..heartbeat = heartbeat
..maxAttempts = maxAttempts
..maxAttemptWaitTime = maxAttemptWaitTime;
}