TextField constructor

const TextField({
  1. Key? key,
  2. Key? fieldKey,
  3. bool enabled = true,
  4. bool autofocus = false,
  5. bool autocorrect = true,
  6. TextEditingController? controller,
  7. TextInputType? keyboardType,
  8. List<TextInputFormatter>? inputFormatters,
  9. TextCapitalization textCapitalization = TextCapitalization.none,
  10. required String label,
  11. String? placeholder,
  12. String? error,
  13. Widget? prefix,
  14. Widget? suffix,
  15. int? maxLines = 1,
  16. int? maxLength,
  17. void onChanged(
    1. String
    )?,
  18. void onSubmitted(
    1. String
    )?,
})

Implementation

const TextField({
  super.key,
  this.fieldKey,
  this.enabled = true,
  this.autofocus = false,
  this.autocorrect = true,
  this.controller,
  this.keyboardType,
  this.inputFormatters,
  this.textCapitalization = TextCapitalization.none,
  required this.label,
  this.placeholder,
  this.error,
  this.prefix,
  this.suffix,
  this.maxLines = 1,
  this.maxLength,
  this.onChanged,
  this.onSubmitted,
});