Tags.parse constructor

Tags.parse(
  1. XmlElement element
)

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

Implementation

factory Tags.parse(XmlElement element) => Tags(
      tags: element.text,
      weight: int.tryParse(element.getAttribute('weight') ?? '1'),
    );