copyWith method

DatumSyncOptions<T> copyWith({
  1. bool? includeDeletes,
  2. bool? resolveConflicts,
  3. bool? forceFullSync,
  4. int? overrideBatchSize,
  5. Duration? timeout,
  6. SyncDirection? direction,
  7. DatumConflictResolver<T>? conflictResolver,
})

Creates a new instance with the specified values, allowing for a change in the generic type.

Implementation

DatumSyncOptions<T> copyWith({
  bool? includeDeletes,
  bool? resolveConflicts,
  bool? forceFullSync,
  int? overrideBatchSize,
  Duration? timeout,
  SyncDirection? direction,
  DatumConflictResolver<T>? conflictResolver,
}) {
  return DatumSyncOptions<T>(
    includeDeletes: includeDeletes ?? this.includeDeletes,
    resolveConflicts: resolveConflicts ?? this.resolveConflicts,
    forceFullSync: forceFullSync ?? this.forceFullSync,
    overrideBatchSize: overrideBatchSize ?? this.overrideBatchSize,
    timeout: timeout ?? this.timeout,
    direction: direction ?? this.direction,
    conflictResolver: conflictResolver ?? this.conflictResolver,
  );
}