RssSource.parse constructor

RssSource.parse(
  1. XmlElement element
)

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

Implementation

factory RssSource.parse(XmlElement element) {
  final url = element.getAttribute('url');
  final value = element.innerText;

  return RssSource(url, value);
}