copyWith method

ItemData copyWith({
  1. int? id,
  2. String? title,
  3. String? subtitle,
  4. DateTime? timestamp,
  5. int? rebuildCount,
})

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,
  );
}