FormTextField constructor

const FormTextField({
  1. Key? key,
  2. required String name,
  3. String? label,
  4. String? hint,
  5. IconData? icon,
  6. List<FormFieldValidator<String>> validators = const [],
  7. bool obscureText = false,
  8. TextInputType? keyboardType,
  9. TextInputAction? textInputAction,
  10. int maxLines = 1,
  11. String? initialValue,
  12. bool enabled = true,
  13. ValueChanged<String>? onChanged,
})

Implementation

const FormTextField({
  super.key,
  required this.name,
  this.label,
  this.hint,
  this.icon,
  this.validators = const [],
  this.obscureText = false,
  this.keyboardType,
  this.textInputAction,
  this.maxLines = 1,
  this.initialValue,
  this.enabled = true,
  this.onChanged,
});