onSearch is a function which is used to perform some action when the text is searched
Function(String?)? onSearch;