buildCustom method
Widget
buildCustom({
- ChildWidgetBuilder? childBuilder,
- required BuildContext context,
- required JsonWidgetData data,
- Key? key,
override
Builds the widget to render to the tree. If 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.
The id
value must be the same for all radios in the group and each radio
will listen to the JsonWidgetRegistry for value updates to be able to
properly select / de-select.
Implementation
@override
Widget buildCustom({
ChildWidgetBuilder? childBuilder,
required BuildContext context,
required JsonWidgetData data,
Key? key,
}) {
var child = getChild(data);
return _JsonRadioWidget(
builder: this,
childBuilder: childBuilder,
data: data,
key: key,
child: child,
);
}