selectContact method
- RxChatContact contact
Selects or unselects the provided contact
, meaning adding or removing it
from the selectedContacts.
Implementation
void selectContact(RxChatContact contact) {
if (selectedContacts.contains(contact.id)) {
selectedContacts.remove(contact.id);
} else {
selectedContacts.add(contact.id);
}
}