copyWith method
Changelog
copyWith({
- UserDetails? author,
- DateTime? created,
- HistoryMetadata? historyMetadata,
- String? id,
- 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,
);
}