getIncomingIndexFromAddress function

int getIncomingIndexFromAddress(
  1. List<PeerData> incomingPeers,
  2. String address
)

Implementation

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