int getIncomingIndexFromAddress(List<PeerData> incomingPeers, String address) { return incomingPeers .indexWhere((incomingPeer) => incomingPeer.address == address); }