Feed stream with changenotifier

This commit is contained in:
SomnusVeritas committed 2023-10-20 21:13:49 +02:00
1 parent f849a42cf9
commit 8c1254ee1a
5 files changed
+82 -1

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
class FeedItem {
final String text;
final DateTime timestamp;
FeedItem.fromMap(Map<String, dynamic> map)
: text = map['text'],
timestamp = DateTime.parse(map['timestamp']);
@override
bool operator ==(Object other) {
if (other is FeedItem) {
return other.timestamp == timestamp;
}
return false;
}
}