NetworkConfig constructor
Creates a network configuration with the given options.
Implementation
NetworkConfig({
this.listenAddresses = defaultListenAddresses,
this.bootstrapPeers = defaultBootstrapPeers,
this.maxConnections = 50,
this.connectionTimeout = const Duration(seconds: 30),
this.enableNatTraversal = false,
this.enableMDNS = true,
String? nodeId,
this.delegatedRoutingEndpoint,
}) : nodeId = nodeId ?? _generateDefaultNodeId();