Network.fromNetworkPrefix constructor
Network.fromNetworkPrefix(
- int networkPrefix
Implementation
factory Network.fromNetworkPrefix(int networkPrefix) {
switch (networkPrefix) {
case 0x01:
return Network(false, networkPrefix, 'toplnet');
case 0x10:
return Network(true, networkPrefix, 'valhalla');
case 0x40:
return Network(true, networkPrefix, 'private');
default:
throw Exception('Unsupported Network Prefix, type:$networkPrefix');
}
}