TextInputSearchField constructor

const TextInputSearchField({
  1. double height = 35,
  2. String placeholder = '',
  3. bool highlightOnFocus = true,
  4. Widget? icon,
  5. VoidCallback? onTap,
  6. bool disabled = false,
  7. VoidCallback? onClearText,
  8. required TextEditingController textEditingController,
  9. Widget? trailingIcon,
  10. bool autoFocus = false,
})

Implementation

const TextInputSearchField({
  this.height = 35,
  this.placeholder = '',
  this.highlightOnFocus = true,
  this.icon,
  this.onTap,
  bool disabled = false,
  this.onClearText,
  required this.textEditingController,
  this.trailingIcon,
  this.autoFocus = false,
}) : disabled = disabled ? true : onTap != null;