SearchBarWidget constructor

const SearchBarWidget({
  1. Key? key,
  2. TextEditingController? controller,
  3. String hintText = 'Search...',
  4. ValueChanged<String>? onChanged,
  5. ValueChanged<String>? onSubmitted,
  6. VoidCallback? onClear,
  7. Widget? leading,
  8. bool showClearButton = true,
  9. 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,
});