1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-01-28 12:43:00 +00:00
comunicmobile/lib/lists/unread_conversations_list.dart

16 lines
437 B
Dart
Raw Normal View History

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
2021-03-10 17:54:41 +01:00
Set<int> get usersID {
2021-03-11 18:50:36 +01:00
final set = Set<int>();
2021-03-10 17:54:41 +01:00
forEach((element) => set.addAll(element.message.usersID));
return set;
}
}