basic models

This commit is contained in:
2026-06-09 11:02:06 +02:00
parent 5f71330a4b
commit 3b130fb59d
3 changed files with 48 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import 'location.dart';
class Task {
final String title;
final String description;
final DateTime? start;
final DateTime? due;
final bool isCompleted;
final String category;
final List<Task> subtasks;
final List<DateTime> alarms;
final Location? location;
final String url;
Task({
required this.title,
this.description = '',
this.start,
this.due,
this.isCompleted = false,
this.category = '',
this.subtasks = const [],
this.alarms = const [],
this.location,
this.url = '',
});
}