TextInputSearchField constructor
const
TextInputSearchField({
- double height = 35,
- String placeholder = '',
- bool highlightOnFocus = true,
- Widget? icon,
- VoidCallback? onTap,
- bool disabled = false,
- VoidCallback? onClearText,
- required TextEditingController textEditingController,
- Widget? trailingIcon,
- 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;