SearchBarWidget constructor
const
SearchBarWidget({
- Key? key,
- TextEditingController? controller,
- String hintText = 'Search...',
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - VoidCallback? onClear,
- Widget? leading,
- bool showClearButton = true,
- bool autofocus = false,
Implementation
const SearchBarWidget({
super.key,
this.controller,
this.hintText = 'Search...',
this.onChanged,
this.onSubmitted,
this.onClear,
this.leading,
this.showClearButton = true,
this.autofocus = false,
});