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