CustomInputField constructor

const CustomInputField({
  1. Key? key,
  2. required String labelText,
  3. required ValueChanged<String> onSubmitted,
  4. required int maxLength,
  5. required int minLengt,
  6. required ValueChanged<bool> validadChange,
  7. required TextInputType textType,
  8. required TextInputFormatter format,
  9. String defaultValue = '',
  10. bool isDisabled = false,
})

Implementation

const CustomInputField({
  super.key,
  required this.labelText,
  required this.onSubmitted,
  required this.maxLength,
  required this.minLengt,
  required this.validadChange,
  required this.textType,
  required this.format,
  this.defaultValue = '', // Agregado
  this.isDisabled = false, // Agregado
});