SherlockSearchBar constructor

const SherlockSearchBar({
  1. Key? key,
  2. String? hintText,
  3. bool? isFullScreen,
  4. Color? dividerColor,
  5. double? elevation,
  6. Color? backgroundColor,
  7. Color? overlayColor,
  8. BorderSide? side,
  9. OutlinedBorder? shape,
  10. EdgeInsetsGeometry? padding,
  11. TextStyle? textStyle,
  12. TextStyle? hintStyle,
  13. required Sherlock sherlock,
  14. required SherlockCompletion sherlockCompletion,
  15. int? sherlockCompletionMinResults,
  16. int? sherlockCompletionMaxResults,
  17. void onSearch(
    1. String input,
    2. Sherlock sherlock
    )?,
  18. SherlockCompletionsBuilder completionsBuilder(
    1. BuildContext context,
    2. List<String> completions
    )?,
})

Implementation

const SherlockSearchBar({
  super.key,
  this.hintText,
  this.isFullScreen,
  this.dividerColor,
  this.elevation,
  this.backgroundColor,
  this.overlayColor,
  this.side,
  this.shape,
  this.padding,
  this.textStyle,
  this.hintStyle,
  required this.sherlock,
  required this.sherlockCompletion,
  this.sherlockCompletionMinResults,
  this.sherlockCompletionMaxResults,
  this.onSearch,
  this.completionsBuilder,
});