equal method
Equal returns true if the other PeerRecord is identical to this one.
Implementation
bool equal(PeerRecord other) {
if (peerId != other.peerId) return false;
if (seq != other.seq) return false;
if (addrs.length != other.addrs.length) return false;
for (var i = 0; i < addrs.length; i++) {
if (!addrs[i].equals(other.addrs[i])) return false;
}
return true;
}