superInvitesForRoom top-level property

dynamic superInvitesForRoom
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) => asDartStringList(invite.rooms()).contains(roomId))
      .toList();
});