spacesFoundProvider top-level property
final
Implementation
final AutoDisposeFutureProvider<List<SpaceDetails>> spacesFoundProvider =
FutureProvider.autoDispose((ref) async {
final searchValue = ref.watch(searchValueProvider).toLowerCase();
// filter and sort them separately to keep the bookmarks at the beginning.
final allSpaces =
_filterSpaces(ref, searchValue, ref.watch(bookmarkedSpacesProvider));
allSpaces.addAll(
_filterSpaces(ref, searchValue, ref.watch(unbookmarkedSpacesProvider)),
);
return allSpaces;
});