buildCustom method
_Form
buildCustom({
- ChildWidgetBuilder? childBuilder,
- required BuildContext context,
- required JsonWidgetData data,
- Key? key,
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.jsonWidgetId}.key" so that handler functions can access the form's
state.
Implementation
@override
_Form buildCustom({
ChildWidgetBuilder? childBuilder,
required BuildContext context,
required JsonWidgetData data,
Key? key,
}) {
final model = createModel(
childBuilder: childBuilder,
data: data,
);
return _Form(
autovalidateMode: model.autovalidateMode,
canPop: model.canPop,
childBuilder: childBuilder,
data: data,
key: key,
onChanged: model.onChanged,
child: model.child?.build(
childBuilder: childBuilder,
context: context,
),
);
}