Search constructor
const
Search({
- Key? key,
- String hintText = 'Search',
- TextEditingController? controller,
- FocusNode? focusNode,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - VoidCallback? onTap,
- VoidCallback? onEditingComplete,
- bool autofocus = false,
- bool enabled = true,
- bool readOnly = false,
- TextInputAction textInputAction = TextInputAction.search,
- TextInputType keyboardType = TextInputType.text,
Implementation
const Search({
super.key,
this.hintText = 'Search',
this.controller,
this.focusNode,
this.onChanged,
this.onSubmitted,
this.onTap,
this.onEditingComplete,
this.autofocus = false,
this.enabled = true,
this.readOnly = false,
this.textInputAction = TextInputAction.search,
this.keyboardType = TextInputType.text,
});