withStunNatDetection method
Configures STUN NAT type detection. See enableStunNatDetection.
Implementation
Future<void> withStunNatDetection(bool enabled, {List<({String host, int port})>? servers}) async {
enableStunNatDetection = enabled;
if (servers != null) stunServers = servers;
}