SearchTextField constructor

const SearchTextField({
  1. required TextEditingController controller,
  2. required String hintText,
  3. TextInputType inputType = TextInputType.text,
  4. int maxLength = TextField.noMaxLength,
  5. dynamic suffixIcon,
  6. String prefixIcon = "",
  7. required void onTapClear(),
  8. required void onChanged(
    1. String text
    ),
  9. Key? key,
})

Implementation

const SearchTextField({
  required this.controller,
  required this.hintText,
  this.inputType = TextInputType.text,
  this.maxLength = TextField.noMaxLength,
  this.suffixIcon,
  this.prefixIcon = "",
  required this.onTapClear,
  required this.onChanged,
  super.key
});