preBuild method

  1. @protected
void preBuild(
  1. BuildContext context,
  2. WidgetNodeSpec spec,
  3. Map state,
  4. Map? parentContext,
)

Evaluates properties and applies the template.

Implementation

@protected
void preBuild(BuildContext context, WidgetNodeSpec spec, Map state,
    Map? parentContext) {
  final evaluatorContext = getEvaluatorContext(null, state, parentContext);
  final template = getTemplate(spec.template);
  mergeTemplateAndState(spec, template, state, evaluatorContext);
}