superInvitesForRoom top-level property
final
List of SuperInviteTokens that have the given roomId in their to-invite list
Implementation
final superInvitesForRoom = FutureProvider.autoDispose
.family<List<SuperInviteToken>, String>((ref, roomId) async {
final allInvites = await ref.watch(superInvitesTokensProvider.future);
return allInvites
.where(
(invite) =>
invite.rooms().map((e) => e.toDartString()).contains(roomId),
)
.toList();
});