buildWidgetFromSpec method

Widget buildWidgetFromSpec(
  1. BuildContext context,
  2. WidgetNodeSpec spec,
  3. Map state,
  4. Map? parentContext,
)

Executes a Widget build from a spec.

Implementation

Widget buildWidgetFromSpec(BuildContext context, WidgetNodeSpec spec,
    Map state, Map? parentContext) {
  preBuild(context, spec, state, parentContext);
  final widget = createWidget(context, spec, state, parentContext);
  if (widget is NoWidget) {
    return widget;
  }
  return postBuild(context, widget, spec);
}