toInt method
Implementation
int toInt() => switch (this) {
PeerSource.userProvided => 0,
PeerSource.listener => 1,
PeerSource.localDiscovery => 2,
PeerSource.dht => 3,
PeerSource.peerExchange => 4,
};
int toInt() => switch (this) {
PeerSource.userProvided => 0,
PeerSource.listener => 1,
PeerSource.localDiscovery => 2,
PeerSource.dht => 3,
PeerSource.peerExchange => 4,
};