toXml method
XmlNode
toXml()
Implementation
XmlNode toXml() {
var children = <XmlNode>[];
children.addAll(methods.map((m) => m.toXml()));
children.addAll(signals.map((s) => s.toXml()));
children.addAll(properties.map((p) => p.toXml()));
children.addAll(annotations.map((a) => a.toXml()));
return XmlElement(
XmlName('interface'), [XmlAttribute(XmlName('name'), name)], children);
}