hostName property
String
hostName
Hostname represented by the url. Throws FormatException if url cannot be parsed, and returns empty string if no host in url
Implementation
String get hostName => Uri.parse(url).host;
Hostname represented by the url. Throws FormatException if url cannot be parsed, and returns empty string if no host in url
String get hostName => Uri.parse(url).host;