buildCustom method

  1. @override
Widget buildCustom({
  1. ChildWidgetBuilder? childBuilder,
  2. required BuildContext context,
  3. required JsonWidgetData data,
  4. Key? key,
})
override

If the id on the data object is non-empty, this will ensure a GlobalKey<FormState> is placed on the JsonWidgetRegistry using the key: "${data.id}.key" so that handler functions can access the form's state.

Implementation

@override
Widget buildCustom({
  ChildWidgetBuilder? childBuilder,
  required BuildContext context,
  required JsonWidgetData data,
  Key? key,
}) {
  final child = getChild(data);

  return _JsonFormWidget(
    builder: this,
    childBuilder: childBuilder,
    data: data,
    key: key,
    child: child,
  );
}