fromInt static method
- int n
Implementation
static NetworkEvent? fromInt(int n) {
  switch (n) {
    case 0: return NetworkEvent.protocolVersionMismatch;
    case 1: return NetworkEvent.peerSetChange;
    default: return null;
  }
}static NetworkEvent? fromInt(int n) {
  switch (n) {
    case 0: return NetworkEvent.protocolVersionMismatch;
    case 1: return NetworkEvent.peerSetChange;
    default: return null;
  }
}