Image.fromXmlAttributes constructor
Image.fromXmlAttributes(
- XmlElement node
Creates a new Image object from an XmlElement
but using the
attributes instead of the child elements (RSS Media)
Implementation
factory Image.fromXmlAttributes(XmlElement node) {
final img = Image(node.getAttribute('url') ?? '')
..width = node.getAttribute('width')
..height = node.getAttribute('height')
..time = node.getAttribute('time');
return img;
}