added compare function

This commit is contained in:
2026-06-12 12:22:04 +02:00
parent 1bb9fdbb18
commit b5f6370fdf
+10
View File
@@ -98,4 +98,14 @@ class Task {
'url': url,
};
}
@override
bool operator ==(Object other) {
if (other is! Task) return false;
return hashCode == other.hashCode;
}
@override
int get hashCode => id.hashCode;
}