SimpleSearchBar constructor

const SimpleSearchBar({
  1. Key? key,
  2. Widget? leading,
  3. bool? topLeading,
  4. EdgeInsetsGeometry? padding,
  5. Widget? title,
  6. Decoration? textFieldDecoration,
  7. InputDecoration? inputDecoration,
  8. Widget? clearAction = const Icon(Icons.clear),
  9. required void onChangeSearch(
    1. String?
    ),
  10. double searchBarElevation = 0.0,
  11. BorderRadiusGeometry? searchBorderRadiusGeometry,
  12. TextStyle? textFieldTextStyle,
  13. Duration? debounceDuration = const Duration(milliseconds: 500),
  14. Decoration? searchBarDecoration,
  15. SearchTermValidator<String>? searchTermValidator,
})

Implementation

const SimpleSearchBar({
  Key? key,
  this.leading,
  this.topLeading,
  this.padding,
  this.title,
  this.textFieldDecoration,
  this.inputDecoration,
  this.clearAction = const Icon(Icons.clear),
  required this.onChangeSearch,
  this.searchBarElevation = 0.0,
  this.searchBorderRadiusGeometry,
  this.textFieldTextStyle,
  this.debounceDuration = const Duration(milliseconds: 500),
  this.searchBarDecoration,
  this.searchTermValidator,
}) : super(key: key);