Search constructor

const Search({
  1. String placeholder = 'Search...',
  2. String? value,
  3. void onChanged(
    1. String value
    )?,
  4. void onSubmitted(
    1. String value
    )?,
  5. bool showClear = true,
  6. bool loading = false,
  7. Component? icon,
  8. bool autofocus = false,
  9. bool disabled = false,
  10. Key? key,
})

Implementation

const Search({
  this.placeholder = 'Search...',
  this.value,
  this.onChanged,
  this.onSubmitted,
  this.showClear = true,
  this.loading = false,
  this.icon,
  this.autofocus = false,
  this.disabled = false,
  super.key,
});