add method
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;
}
Adds contact
to the ContactList.
Can also be used to update existing contacts as entries for already known public keys will be overwritten.
void add(Contact contact) {
_contacts[contact.publicKey] = contact;
}