copyWith method
Implementation
ItemData copyWith({
int? id,
String? title,
String? subtitle,
DateTime? timestamp,
int? rebuildCount,
}) {
return ItemData(
id: id ?? this.id,
title: title ?? this.title,
subtitle: subtitle ?? this.subtitle,
timestamp: timestamp ?? this.timestamp,
rebuildCount: rebuildCount ?? this.rebuildCount,
);
}