Field.custom constructor
Field.custom(
- String key, {
- required NyFieldStatefulWidget child,
- String? label,
- dynamic value,
- FormValidator? validator,
- bool autofocus = false,
- String? dummyData,
- Widget? header,
- TextStyle? titleStyle,
- bool? readOnly,
- FieldStyle? style,
- dynamic onChanged(
- dynamic value
Field.capitalizeWords is a constructor that helps in managing capitalizeWords fields
Implementation
Field.custom(
this.key, {
required NyFieldStatefulWidget child,
this.label,
dynamic value,
this.validator,
this.autofocus = false,
this.dummyData,
this.header,
this.footer,
this.titleStyle,
this.hidden = false,
this.readOnly,
FieldStyle? style,
Function(dynamic value)? onChanged,
}) : _value = value,
this.style = style {
setOnChanged(onChanged);
widget = child;
}