FormFieldItem constructor

FormFieldItem({
  1. Key? key,
  2. required String label,
  3. required String mapKey,
  4. String? hint,
  5. TextInputAction? textInputAction,
  6. TextEditingController? controller,
  7. InputDecoration? decoration,
  8. TextStyle? style,
  9. TextInputType textInputType = TextInputType.text,
  10. bool required = false,
  11. bool enabled = true,
  12. bool obscureText = false,
  13. bool autofocus = false,
  14. bool autocorrect = false,
  15. bool readOnly = false,
  16. String? initialValue,
  17. int? maxLength,
  18. String? validator(
    1. String?
    )?,
  19. void onEditingComplete()?,
  20. void onFieldSubmitted(
    1. String
    )?,
  21. void onSaved(
    1. String?
    )?,
  22. List<TextInputFormatter>? inputFormatters,
  23. dynamic onTap()?,
  24. dynamic onChanged(
    1. String val
    )?,
})

Create a new FormFieldItem instance

required mapKey is the key that will be used to save the value in the Map returned by toMap method in AdvancedFormGenerator instance required label is the label of the field

Implementation

FormFieldItem({
  Key? key,
  required this.label,
  required this.mapKey,
  this.hint,
  this.textInputAction,
  this.controller,
  this.decoration,
  this.style,
  this.textInputType = TextInputType.text,
  this.required = false,
  this.enabled = true,
  this.obscureText = false,
  this.autofocus = false,
  this.autocorrect = false,
  this.readOnly = false,
  this.initialValue,
  this.maxLength,
  this.validator,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.onSaved,
  this.inputFormatters,
  this.onTap,
  this.onChanged,
}) : super(key: key);