selectAtSign method

dynamic selectAtSign(
  1. AtContact? contact
)

Implementation

selectAtSign(AtContact? contact) {
  try {
    if (selectedContacts.length <= 25 &&
        !selectedContacts.contains(contact)) {
      selectedContacts.add(contact);
    } else {
      limitReached = true;
    }
    selectedContactSink.add(selectedContacts);
  } catch (error) {
    print(error);
  }
}