copyWith method

Changelog copyWith({
  1. UserDetails? author,
  2. DateTime? created,
  3. HistoryMetadata? historyMetadata,
  4. String? id,
  5. List<ChangeDetails>? items,
})

Implementation

Changelog copyWith(
    {UserDetails? author,
    DateTime? created,
    HistoryMetadata? historyMetadata,
    String? id,
    List<ChangeDetails>? items}) {
  return Changelog(
    author: author ?? this.author,
    created: created ?? this.created,
    historyMetadata: historyMetadata ?? this.historyMetadata,
    id: id ?? this.id,
    items: items ?? this.items,
  );
}