1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-10-23 15:03:22 +00:00
comunicmobile/lib/lists/unread_conversations_list.dart

16 lines
432 B
Dart

import 'package:comunic/lists/abstract_list.dart';
import 'package:comunic/models/unread_conversation.dart';
/// List of unread conversations
///
/// @author Pierre Hubert
class UnreadConversationsList extends AbstractList<UnreadConversation> {
/// Get the ID of the users included in this list
Set<int> get usersID {
final set = Set();
forEach((element) => set.addAll(element.message.usersID));
return set;
}
}