copyWith method
Implementation
Item copyWith({
int? id,
String? name,
String? desc,
String? nextPager,
String? image,
}) {
return Item(
id: id ?? this.id,
name: name ?? this.name,
desc: desc ?? this.desc,
nextPager: nextPager ?? this.nextPager,
image: image ?? this.image,
);
}