Uri constructor
Uri({
- Uri_Protocol? protocol,
- Uri_Authorization? auth,
- String? host,
- String? port,
- String? path,
- Iterable<
Uri_QueryParameter> ? query, - String? fragment,
Implementation
factory Uri({
Uri_Protocol? protocol,
Uri_Authorization? auth,
$core.String? host,
$core.String? port,
$core.String? path,
$core.Iterable<Uri_QueryParameter>? query,
$core.String? fragment,
}) {
final _result = create();
if (protocol != null) {
_result.protocol = protocol;
}
if (auth != null) {
_result.auth = auth;
}
if (host != null) {
_result.host = host;
}
if (port != null) {
_result.port = port;
}
if (path != null) {
_result.path = path;
}
if (query != null) {
_result.query.addAll(query);
}
if (fragment != null) {
_result.fragment = fragment;
}
return _result;
}