elementAt method

dynamic elementAt(
  1. int i
)

Returns an item by its index from the search results.

Returned item is either RxUser, RxChat or RxChatContact.

Implementation

dynamic elementAt(int i) {
  return [
    ...chats.values,
    ...recent.values,
    ...contacts.values,
    ...users.values,
  ].elementAt(i);
}