Search constructor

const Search({
  1. Key? key,
  2. String hintText = 'Search',
  3. TextEditingController? controller,
  4. FocusNode? focusNode,
  5. ValueChanged<String>? onChanged,
  6. ValueChanged<String>? onSubmitted,
  7. VoidCallback? onTap,
  8. VoidCallback? onEditingComplete,
  9. bool autofocus = false,
  10. bool enabled = true,
  11. bool readOnly = false,
  12. TextInputAction textInputAction = TextInputAction.search,
  13. TextInputType keyboardType = TextInputType.text,
})

Implementation

const Search({
  super.key,
  this.hintText = 'Search',
  this.controller,
  this.focusNode,
  this.onChanged,
  this.onSubmitted,
  this.onTap,
  this.onEditingComplete,
  this.autofocus = false,
  this.enabled = true,
  this.readOnly = false,
  this.textInputAction = TextInputAction.search,
  this.keyboardType = TextInputType.text,
});