host property
String
get
host
获取Uri中的host 如果该字符串不是Url 将抛出 FormatException
Implementation
String get host {
try {
return toUri?.host ?? "";
} catch (_) {
return "";
}
}
获取Uri中的host 如果该字符串不是Url 将抛出 FormatException
String get host {
try {
return toUri?.host ?? "";
} catch (_) {
return "";
}
}