TUISearchBar constructor

const TUISearchBar({
  1. Key? key,
  2. bool showBackIcon = true,
  3. bool showTrailingIcon = false,
  4. String placeholder = "Search",
  5. dynamic onBackAction()?,
  6. dynamic onTrailingButtonAction()?,
  7. TextEditingController? textEditingController,
  8. dynamic onChanged(
    1. String
    )?,
  9. bool autofocus = false,
})

Implementation

const TUISearchBar({
  super.key,
  this.showBackIcon = true,
  this.showTrailingIcon = false,
  this.placeholder = "Search",
  this.onBackAction,
  this.onTrailingButtonAction,
  this.textEditingController,
  this.onChanged,
  this.autofocus = false,
});