port property Null safety
Extracts the port from the base URL.
Implementation
int get port {
final uri = Uri.parse(baseUrl);
if (uri.hasPort) return uri.port;
return isHTTPS ? 443 : 80;
}
Extracts the port from the base URL.
int get port {
final uri = Uri.parse(baseUrl);
if (uri.hasPort) return uri.port;
return isHTTPS ? 443 : 80;
}