removeSelectedContact method
removes the selected contact at the given index
from the event notification model
Implementation
removeSelectedContact(int index) {
if (eventNotificationModel!.group!.members!.length > index &&
selectedContacts!.length > index) {
eventNotificationModel!.group!.members!.removeWhere(
(element) => element.atSign == selectedContacts![index].atSign);
selectedContacts!.removeAt(index);
selectedContactsAtSigns.removeAt(index);
}
}