SearchBar constructor

const SearchBar({
  1. Key? key,
  2. required SearchService searchService,
  3. required dynamic onResultSelected(
    1. SearchResult
    ),
  4. bool showClearButton = false,
  5. VoidCallback? onClear,
  6. TextEditingController? controller,
  7. double? height,
  8. 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,
});