toXml method
Implementation
XMLNode toXml() {
return XMLNode(
tag: 'option',
attributes: {
if (label != null) 'label': label,
},
children: [
XMLNode(
tag: 'value',
text: value,
),
],
);
}
XMLNode toXml() {
return XMLNode(
tag: 'option',
attributes: {
if (label != null) 'label': label,
},
children: [
XMLNode(
tag: 'value',
text: value,
),
],
);
}