getWidget method

Widget getWidget(
  1. UXPProps uxpProps,
  2. Map<String, String>? params
)

Implementation

Widget getWidget(UXPProps uxpProps, Map<String, String>? params) {
  String type = uxpProps.template?.type ?? "default";
  var builderFunc = widgetBuilders[type] ?? widgetBuilders["default"];
  return builderFunc!(uxpProps, null);
}