added function to remove search text
This commit is contained in:
@@ -8,5 +8,10 @@ class SearchProvider extends ChangeNotifier {
|
||||
if (!silent) notifyListeners();
|
||||
}
|
||||
|
||||
void removeSearchText({bool silent = false}) {
|
||||
_searchText = '';
|
||||
if (!silent) notifyListeners();
|
||||
}
|
||||
|
||||
String get searchText => _searchText;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user