void add(Peer peer)

Add a Peer to the list. Replaces the Peer element if it is already present.

Source

void add(Peer peer) => update(peer);