addAttribute method
Implementation
void addAttribute(XmppAttribute attribute) {
var existing = getAttribute(attribute.name);
if (existing != null) {
_attributes.remove(existing);
}
_attributes.add(attribute);
}
void addAttribute(XmppAttribute attribute) {
var existing = getAttribute(attribute.name);
if (existing != null) {
_attributes.remove(existing);
}
_attributes.add(attribute);
}