SearchBox constructor

const SearchBox({
  1. Key? key,
  2. double? minWidth,
  3. ValueChanged<String>? onChanged,
  4. VoidCallback? onEditingComplete,
  5. ValueChanged<String>? onSubmitted,
  6. String? initialText,
  7. FocusNode? focusNode,
  8. TextEditingController? controller,
  9. bool autofocus = false,
  10. String placeholder = "Search",
  11. Widget? leading,
  12. Widget? trailing,
})

Implementation

const SearchBox(
    {super.key,
    this.minWidth,
    this.onChanged,
    this.onEditingComplete,
    this.onSubmitted,
    this.initialText,
    this.focusNode,
    this.controller,
    this.autofocus = false,
    this.placeholder = "Search",
    this.leading,
    this.trailing});