fromInt static method
- int n
Implementation
static PeerSource? fromInt(int n) {
switch (n) {
case 0: return PeerSource.userProvided;
case 1: return PeerSource.listener;
case 2: return PeerSource.localDiscovery;
case 3: return PeerSource.dht;
case 4: return PeerSource.peerExchange;
default: return null;
}
}