defaultBuild method
Implementation
Widget defaultBuild() {
if (enabled) {
switch (widget.autovalidateMode) {
case AutovalidateMode.always:
_validateInBuild();
break;
case AutovalidateMode.onUserInteraction:
if (_hasInteractedByUser) {
_validateInBuild();
}
break;
case AutovalidateMode.disabled:
break;
}
}
_register();
return FormeFieldScope(this, Builder(
builder: (context) {
Widget child = widget.builder(this);
if (widget.decorator != null) {
child = widget.decorator!.build(context, child, this);
}
return child;
},
));
}