build method
dynamic
build(
- Object? context, {
- bool asElement = true,
- bool resolveDSX = true,
- QueryElementProvider? elementProvider,
- 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);
}
}