port property

int? port

The port that the server is listening on, or null if the server is not active.

Implementation

int? get port {
  if (_secureServer != null) return _secureServer!.port;
  if (_insecureServer != null) return _insecureServer!.port;
  return null;
}