VoiceFormField constructor

const VoiceFormField({
  1. Key? key,
  2. required TextEditingController controller,
  3. String? hint,
  4. int? height,
  5. int? width,
  6. int fontSize = 16,
  7. Color borderColor = Colors.blue,
  8. String? label,
  9. bool enableVoice = false,
  10. int? maxLines = 1,
  11. int? minLines = 1,
  12. int? errorMaxLines = 1,
  13. TextInputType? keyboardType,
  14. IconButton? suffixIconButton,
  15. bool? autofocus = false,
  16. bool? autocorrect = false,
  17. TextInputAction? textInputAction,
  18. AutovalidateMode? autoValidateMode,
  19. EdgeInsets? padding,
  20. InputBorder? enabledBorder,
  21. InputBorder? border,
  22. InputBorder? focusedErrorBorder,
  23. InputBorder? focusedBorder,
  24. InputBorder? errorBorder,
  25. InputBorder? disabledBorder,
  26. String? validator(
    1. String?
    )?,
  27. required FormFieldType fieldType,
  28. required String fieldId,
  29. dynamic onMicTap(
    1. String fieldId
    )?,
})

Implementation

const VoiceFormField({
  super.key,
  required this.controller,
  this.hint,
  this.height,
  this.width,
  this.fontSize = 16,
  this.borderColor = Colors.blue,
  this.label,
  this.enableVoice = false,
  this.maxLines = 1,
  this.minLines = 1,
  this.errorMaxLines = 1,
  this.keyboardType,
  this.suffixIconButton,
  this.autofocus = false,
  this.autocorrect = false,
  this.textInputAction,
  this.autoValidateMode,
  this.padding,
  this.enabledBorder,
  this.border,
  this.focusedErrorBorder,
  this.focusedBorder,
  this.errorBorder,
  this.disabledBorder,
  this.validator,
  required this.fieldType,
  required this.fieldId,
  this.onMicTap,
});