removed position from the model
This commit is contained in:
@@ -12,7 +12,6 @@ class Task {
|
||||
final List<DateTime> alarms;
|
||||
final Location? location;
|
||||
final String url;
|
||||
final int position;
|
||||
|
||||
Task({
|
||||
required this.id,
|
||||
@@ -26,7 +25,6 @@ class Task {
|
||||
this.alarms = const [],
|
||||
this.location,
|
||||
this.url = '',
|
||||
required this.position,
|
||||
});
|
||||
|
||||
Task copyWith({
|
||||
@@ -41,7 +39,6 @@ class Task {
|
||||
List<DateTime>? alarms,
|
||||
Location? location,
|
||||
String? url,
|
||||
int? position,
|
||||
}) {
|
||||
return Task(
|
||||
id: id ?? this.id,
|
||||
@@ -55,7 +52,6 @@ class Task {
|
||||
alarms: alarms ?? this.alarms,
|
||||
location: location ?? this.location,
|
||||
url: url ?? this.url,
|
||||
position: position ?? this.position,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user