copyWith method
Implementation
AppItem copyWith({
String? title,
String? description,
String? imageUrl,
String? category,
bool? isFavorite,
}) =>
AppItem(
id: id,
title: title ?? this.title,
description: description ?? this.description,
imageUrl: imageUrl ?? this.imageUrl,
category: category ?? this.category,
isFavorite: isFavorite ?? this.isFavorite,
createdAt: createdAt,
updatedAt: DateTime.now(),
);