NameAddrHeader constructor
NameAddrHeader(
- URI? uri,
- String? display_name, [
- Map? parameters
])
Implementation
NameAddrHeader(URI? uri, String? display_name,
[Map<dynamic, dynamic>? parameters]) {
// Checks.
if (uri == null) {
throw AssertionError('missing or invalid "uri" = $uri parameter');
}
// Initialize parameters.
_uri = uri;
_parameters = <dynamic, dynamic>{};
_display_name = display_name;
if (parameters != null) {
parameters.forEach((dynamic key, dynamic param) {
setParam(key, param);
});
}
}