deserialize method

  1. @override
void deserialize(
  1. XmlElement xml
)
override

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);
 }
  }