selected method

List<UserId> selected()

Returns all the selected UserIds.

Implementation

List<UserId> selected() {
  return {
    ...selectedContacts.expand((e) => e.contact.value.users.map((u) => u.id)),
    ...selectedUsers.map((u) => u.id),
  }.toList();
}