NameAddrHeader constructor

NameAddrHeader(
  1. URI? uri,
  2. String? display_name, [
  3. 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);
    });
  }
}