RssContent.parse constructor

RssContent.parse(
  1. XmlElement element
)

Implementation

factory RssContent.parse(XmlElement element) {
  final dynamic? content = element.text;
  final images = <String>[];
  _imagesRegExp.allMatches(content).forEach((match) {
    images.add(match.group(1)!);
  });
  return RssContent(content, images);
}