SearchBar constructor
- Key? key,
- required SearchService searchService,
- required dynamic onResultSelected(),
- bool showClearButton = false,
- VoidCallback? onClear,
- TextEditingController? controller,
- double? height,
- Position? currentPosition,
//////////// ////////////
Implementation
// II.B - Constructor
///////////////
const SearchBar({
super.key,
required this.searchService,
required this.onResultSelected,
this.showClearButton = false,
this.onClear,
this.controller,
this.height,
this.currentPosition,
});