fromXml static method

TriggerConditionModel? fromXml(
  1. WidgetModel parent,
  2. XmlElement e, {
  3. String? when,
})
override

Implementation

static TriggerConditionModel? fromXml(WidgetModel parent, XmlElement e,
    {String? when}) {
  TriggerConditionModel condition = TriggerConditionModel(
    parent,
    when: Xml.get(node: e, tag: 'when'),
    call: Xml.get(node: e, tag: 'call'),
  );

  return condition;
}