add method

void add(
  1. Contact contact
)

Adds contact to the ContactList.

Can also be used to update existing contacts as entries for already known public keys will be overwritten.

Implementation

void add(Contact contact) {
  _contacts[contact.publicKey] = contact;
}