copyWith method

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

Implementation

Changelog copyWith(
    {String? id,
    Map<String, dynamic>? author,
    DateTime? created,
    List<ChangelogItemsItem>? items,
    Map<String, dynamic>? historyMetadata}) {
  return Changelog(
    id: id ?? this.id,
    author: author ?? this.author,
    created: created ?? this.created,
    items: items ?? this.items,
    historyMetadata: historyMetadata ?? this.historyMetadata,
  );
}