ReplicatorConfiguration constructor Null safety

ReplicatorConfiguration(
  1. {required Database database,
  2. required Endpoint target,
  3. ReplicatorType replicatorType = ReplicatorType.pushAndPull,
  4. bool continuous = false,
  5. Authenticator? authenticator,
  6. Uint8List? pinnedServerCertificate,
  7. Map<String, String>? headers,
  8. List<String>? channels,
  9. List<String>? documentIds,
  10. ReplicationFilter? pushFilter,
  11. ReplicationFilter? pullFilter,
  12. ConflictResolver? conflictResolver,
  13. bool enableAutoPurge = true,
  14. Duration? heartbeat,
  15. int? maxAttempts,
  16. 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;
}