copyWith method

Item copyWith({
  1. int? id,
  2. String? name,
  3. String? desc,
  4. String? nextPager,
  5. String? image,
})

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