ReplicatorConfiguration constructor
ReplicatorConfiguration({
- required Endpoint target,
- ReplicatorType replicatorType = ReplicatorType.pushAndPull,
- bool continuous = false,
- Authenticator? authenticator,
- bool acceptOnlySelfSignedServerCertificate = false,
- CryptoData? pinnedServerCertificate,
- PemData? trustedRootCertificates,
- Map<
String, String> ? headers, - bool enableAutoPurge = true,
- bool acceptParentDomainCookies = false,
- Duration? heartbeat,
- int? maxAttempts,
- Duration? maxAttemptWaitTime,
Creates a configuration for a Replicator.
Implementation
ReplicatorConfiguration({
required this.target,
this.replicatorType = ReplicatorType.pushAndPull,
this.continuous = false,
this.authenticator,
bool acceptOnlySelfSignedServerCertificate = false,
this.pinnedServerCertificate,
this.trustedRootCertificates,
this.headers,
this.enableAutoPurge = true,
this.acceptParentDomainCookies = false,
Duration? heartbeat,
int? maxAttempts,
Duration? maxAttemptWaitTime,
}) : _collections = {} {
this
..acceptOnlySelfSignedServerCertificate =
acceptOnlySelfSignedServerCertificate
..heartbeat = heartbeat
..maxAttempts = maxAttempts
..maxAttemptWaitTime = maxAttemptWaitTime;
}