buildWidget method

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

Transforms a Map spec to a WidgetNodeSpec spec and executes buildWidgetFromSpec.

Implementation

Widget buildWidget(
    BuildContext context, Map spec, Map state, Map? parentContext) {
  return buildWidgetFromSpec(
      context, WidgetNodeSpec.fromMap(spec), state, parentContext);
}