search method
You can search by specifying search characters in search.
If force
is specified, the update will be forced.
Implementation
Future<List<T>> search(
String search, {
bool force = false,
}) async {
if (!force && _searchText == search) {
return this;
}
_searchText = search;
clear();
await load();
return this;
}