basic models
This commit is contained in:
@@ -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 = '',
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user