deserialize method
Deserializes the FML template elements, attributes and children
Implementation
@override
void deserialize(XmlElement xml)
{
// deserialize
super.deserialize(xml);
// properties
icon = Xml.get(node: xml, tag: 'icon');
expandedicon = Xml.get(node: xml, tag: 'expandedicon');
// Build Nodes and find the youngestGeneration
_buildNodes();
// build the prototype
if (datasource != null && nodes.isNotEmpty)
{
prototype = WidgetModel.prototypeOf(nodes.first.element);
nodes.removeAt(0);
}
}