hasNext property
Whether this SearchController has potentially more search results.
Implementation
bool get hasNext {
final bool contactsHaveMore =
categories.contains(SearchCategory.contact) &&
(contactsSearch.value?.hasNext.isTrue ??
_contactService.hasNext.isTrue);
final bool usersHaveMore =
categories.contains(SearchCategory.user) &&
(usersSearch.value?.hasNext.isTrue ?? false);
final bool chatsHaveMore = _chatService.hasNext.isTrue;
return chatsHaveMore || usersHaveMore || contactsHaveMore;
}