AtomSource.parse constructor

AtomSource.parse(
  1. XmlElement element
)

Parse constructor for the AtomSource class, used when 'parsing' a feed

Implementation

factory AtomSource.parse(XmlElement element) => AtomSource(
      id: element.findElements('id').firstOrNull?.innerText,
      title: element.findElements('title').firstOrNull?.innerText,
      updated: element.findElements('updated').firstOrNull?.innerText,
    );