Field.custom constructor

Field.custom(
  1. String key, {
  2. required NyFieldStatefulWidget child,
  3. String? label,
  4. dynamic value,
  5. FormValidator? validator,
  6. bool autofocus = false,
  7. String? dummyData,
  8. Widget? header,
  9. Widget? footer,
  10. TextStyle? titleStyle,
  11. bool? hidden = false,
  12. bool? readOnly,
  13. FieldStyle? style,
  14. dynamic onChanged(
    1. 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;
}