encodedHost property
String?
get
encodedHost
Returns an encoded version of the host portion of the URL. (Replaces '/' with '%47' after encoding.)
Implementation
String? get encodedHost {
String? hostName = splitUri()['address'];
if (hostName == null) return null;
hostName = Uri.encodeComponent(hostName);
return hostName.replaceAll('%2F', '%47');
}