diff --git a/lib/models/dynamics/up.dart b/lib/models/dynamics/up.dart index 6650cd14b..8ceb5587a 100644 --- a/lib/models/dynamics/up.dart +++ b/lib/models/dynamics/up.dart @@ -93,4 +93,11 @@ class UpItem { mid = json['mid'] ?? 0; uname = json['uname']; } + + @override + bool operator ==(Object other) => + identical(this, other) || other is UpItem && mid == other.mid; + + @override + int get hashCode => mid.hashCode; }