SearchTextField constructor

const SearchTextField({
  1. Key? key,
  2. required dynamic filterList(
    1. String
    ),
  3. required FocusNode? focusNode,
  4. required InputDecoration? inputDecoration,
  5. required TextInputAction keyboardAction,
  6. required bool obscureText,
  7. required dynamic onSubmitSearch(
    1. String
    )?,
  8. required bool searchFieldEnabled,
  9. required SearchMode searchMode,
  10. required TextEditingController? searchTextController,
  11. required TextInputType textInputType,
  12. required bool displayClearIcon,
  13. required bool displaySearchIcon,
  14. required Color defaultSuffixIconColor,
  15. required double defaultSuffixIconSize,
  16. required TextStyle? textStyle,
  17. required Color? cursorColor,
  18. required int? maxLines,
  19. required int? maxLength,
  20. required TextAlign textAlign,
  21. required List<String> autoCompleteHints,
  22. dynamic onSortTap()?,
  23. Widget? secondaryWidget,
  24. Widget? sortWidget,
})

Implementation

const SearchTextField({
  Key? key,
  required this.filterList,
  required this.focusNode,
  required this.inputDecoration,
  required this.keyboardAction,
  required this.obscureText,
  required this.onSubmitSearch,
  required this.searchFieldEnabled,
  required this.searchMode,
  required this.searchTextController,
  required this.textInputType,
  required this.displayClearIcon,
  required this.displaySearchIcon,
  required this.defaultSuffixIconColor,
  required this.defaultSuffixIconSize,
  required this.textStyle,
  required this.cursorColor,
  required this.maxLines,
  required this.maxLength,
  required this.textAlign,
  required this.autoCompleteHints,
  this.onSortTap,
  this.secondaryWidget,
  this.sortWidget,
}) : super(key: key);