FormFieldItem constructor
FormFieldItem({
- Key? key,
- required String label,
- required String mapKey,
- String? hint,
- TextInputAction? textInputAction,
- TextEditingController? controller,
- InputDecoration? decoration,
- TextStyle? style,
- TextInputType textInputType = TextInputType.text,
- bool required = false,
- bool enabled = true,
- bool obscureText = false,
- bool autofocus = false,
- bool autocorrect = false,
- bool readOnly = false,
- String? initialValue,
- int? maxLength,
- String? validator()?,
- void onEditingComplete()?,
- void onFieldSubmitted()?,
- void onSaved()?,
- List<
TextInputFormatter> ? inputFormatters, - dynamic onTap()?,
- dynamic onChanged(
- 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);