Files
hockeyUmpire/mobile_app/lib/domain/models/task_item.dart
T
2026-09-27 13:51:25 +01:00

36 lines
802 B
Dart

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