ModulaTextField constructor

const ModulaTextField({
  1. Key? key,
  2. String? label,
  3. String? hintText,
  4. String? initialValue,
  5. String? errorText,
  6. ValueChanged<String>? onChanged,
  7. ModulaTextFieldType type = ModulaTextFieldType.normal,
  8. int? maxLines,
  9. int? maxLength,
  10. IconData? prefixIcon,
  11. IconData? suffixIcon,
  12. bool showClearButton = false,
  13. bool showCharacterCount = false,
  14. InputDecoration? decoration,
})

Implementation

const ModulaTextField({
  super.key,
  this.label,
  this.hintText,
  this.initialValue,
  this.errorText,
  this.onChanged,
  this.type = ModulaTextFieldType.normal,
  this.maxLines,
  this.maxLength,
  this.prefixIcon,
  this.suffixIcon,
  this.showClearButton = false,
  this.showCharacterCount = false,
  this.decoration,
});