setExtraContactUriParams method

void setExtraContactUriParams(
  1. Map<String, dynamic>? extraContactUriParams
)

Implementation

void setExtraContactUriParams(Map<String, dynamic>? extraContactUriParams) {
  if (extraContactUriParams is! Map) {
    extraContactUriParams = <String, dynamic>{};
  }

  NameAddrHeader? contact = Grammar.parse(_contact, 'Contact')[0]['parsed'];

  extraContactUriParams!.forEach((String paramKey, dynamic paramValue) {
    contact!.uri!.setParam(paramKey, paramValue);
  });

  _contact = contact.toString();
}