build method

  1. @override
dynamic build(
  1. Object? context, {
  2. bool asElement = true,
  3. bool resolveDSX = true,
  4. QueryElementProvider? elementProvider,
  5. IntlMessageResolver? intlMessageResolver,
})
override

Implementation

@override
dynamic build(Object? context,
    {bool asElement = true,
    bool resolveDSX = true,
    QueryElementProvider? elementProvider,
    IntlMessageResolver? intlMessageResolver}) {
  var value = variable!.getResolved(context);
  if (variable!.evaluateValue(value)) {
    return asElement ? value : DOMTemplateVariable.valueToString(value);
  } else {
    return super.build(context,
        asElement: asElement,
        resolveDSX: resolveDSX,
        elementProvider: elementProvider);
  }
}