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