buildCustom method
_Checkbox
buildCustom({
- ChildWidgetBuilder? childBuilder,
- required BuildContext context,
- required JsonWidgetData data,
- Key? key,
Custom builder that subclasses must override and implement to return the actual Widget to be placed on the tree.
Implementation
@override
_Checkbox buildCustom({
ChildWidgetBuilder? childBuilder,
required BuildContext context,
required JsonWidgetData data,
Key? key,
}) {
final model = createModel(
childBuilder: childBuilder,
data: data,
);
final validatorDecoded = _decodeValidator(
value: model.validator,
);
return _Checkbox(
activeColor: model.activeColor,
autofocus: model.autofocus,
autovalidateMode: model.autovalidateMode,
checkColor: model.checkColor,
data: data,
enabled: model.enabled,
fillColor: model.fillColor,
focusColor: model.focusColor,
focusNode: model.focusNode,
hoverColor: model.hoverColor,
isError: model.isError,
label: model.label,
materialTapTargetSize: model.materialTapTargetSize,
mouseCursor: model.mouseCursor,
onChanged: model.onChanged,
onSaved: model.onSaved,
overlayColor: model.overlayColor,
shape: model.shape,
side: model.side,
splashRadius: model.splashRadius,
tristate: model.tristate,
validator: validatorDecoded,
value: model.value,
visualDensity: model.visualDensity,
);
}