Embed.parse constructor
Embed.parse(
- XmlElement element
Parse constructor for the Embed class, used when 'parsing' a feed
Implementation
factory Embed.parse(XmlElement element) => Embed(
url: element.getAttribute('url'),
width: int.tryParse(element.getAttribute('width') ?? '0'),
height: int.tryParse(element.getAttribute('height') ?? '0'),
params: element.findElements('media:param').map(Param.parse).toList(),
);