copyWith method

MapSyncRecord copyWith({
  1. String? namespace,
  2. Value<DateTime?> catalogFetchedAt = const Value.absent(),
  3. Value<DateTime?> indexFetchedAt = const Value.absent(),
})

Implementation

MapSyncRecord copyWith({
  String? namespace,
  Value<DateTime?> catalogFetchedAt = const Value.absent(),
  Value<DateTime?> indexFetchedAt = const Value.absent(),
}) => MapSyncRecord(
  namespace: namespace ?? this.namespace,
  catalogFetchedAt: catalogFetchedAt.present
      ? catalogFetchedAt.value
      : this.catalogFetchedAt,
  indexFetchedAt: indexFetchedAt.present
      ? indexFetchedAt.value
      : this.indexFetchedAt,
);