buildWidgetFromSpec method
Widget
buildWidgetFromSpec(
- BuildContext context,
- WidgetNodeSpec spec,
- Map state,
- 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);
}