deserialize method
Deserializes the FML template elements, attributes and children
Implementation
@override
void deserialize(XmlElement xml) {
// deserialize
super.deserialize(xml);
// set properties
value = Xml.get(node: xml, tag: 'value');
// automatically add an empty widget to the list?
var addempty = toBool(Xml.get(node: xml, tag: 'addempty'));
if (addempty == null && emptyOption != null) addempty = true;
this.addempty = addempty ?? true;
// build select options
_buildOptions();
// set the default selected option
if (datasource == null) _setSelectedOption();
}