buildXml method
void
buildXml(
- XmlBuilder builder
Implementation
void buildXml(XmlBuilder builder) {
builder.element("item", nest: () {
if (title != null) {
builder.element("title", nest: title!);
}
if (link != null) {
builder.element("link", nest: link!);
}
if (description != null) {
builder.element("description", nest: description!);
}
if (pubDate != null) {
builder.element("pubDate", nest: pubDate);
}
if (guid != null) {
builder.element("guid", nest: guid);
}
if (author != null) {
builder.element("author", nest: author);
}
});
}