SearchBarWidget constructor

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

Creates a SearchBarWidget.

Implementation

const SearchBarWidget({
  this.controller,
  this.hintText = 'Search...',
  this.onChanged,
  this.onSubmitted,
  this.onClear,
  this.leading,
  this.showClearButton = true,
  this.autofocus = false,
  super.key,
});