buildCustom method

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

Builds the widget to render to the tree. If the data object has a non-empty id associated with it and the enabled property is true then this will attach the selected value to the JsonWidgetRegistry using the id as the key any time the selected value is changed.

Likewise, this will set any error messages using the key '$id.error'. An empty string will be used to represent no error message.

Implementation

@override
Widget buildCustom({
  ChildWidgetBuilder? childBuilder,
  required BuildContext context,
  required JsonWidgetData data,
  Key? key,
}) {
  return _JsonDropdownButtonFormFieldWidget(
    builder: this,
    childBuilder: childBuilder,
    data: data,
    key: key,
  );
}