url property
String
get
url
动态生成完整 URL
Implementation
String get url {
if (host.isNotEmpty && port > 0 && apiUrl.isNotEmpty) {
return 'http://$host:$port$apiUrl';
}
return '';
}
动态生成完整 URL
String get url {
if (host.isNotEmpty && port > 0 && apiUrl.isNotEmpty) {
return 'http://$host:$port$apiUrl';
}
return '';
}