resolveSecurePort static method
Implementation
static int resolveSecurePort(int? securePort,
{APIConfig? apiConfig, bool? letsEncrypt}) {
securePort ??= apiConfig?.getPath('server', 'securePort');
return (letsEncrypt ?? false)
? (securePort != null && securePort > 10 ? securePort : 443)
: (securePort ?? -1);
}