class TaskItem { const TaskItem({ required this.id, required this.title, required this.description, this.isCompleted = false, required this.category, required this.createdAt, }); final String id; final String title; final String description; final bool isCompleted; final String category; final DateTime createdAt; TaskItem copyWith({ String? id, String? title, String? description, bool? isCompleted, String? category, DateTime? createdAt, }) { return TaskItem( id: id ?? this.id, title: title ?? this.title, description: description ?? this.description, isCompleted: isCompleted ?? this.isCompleted, category: category ?? this.category, createdAt: createdAt ?? this.createdAt, ); } }