tryBuildWidget method
Tries to execute a Widget build from a spec
.
Implementation
Widget? tryBuildWidget(
BuildContext context, dynamic spec, Map state, Map? parentContext) {
if (spec == null) {
return null;
} else if (spec is Widget) {
return spec;
} else if (spec is! Map) {
return null;
}
return buildWidget(context, spec, state, parentContext);
}