search method

Future<List<T>> search(
  1. String search, {
  2. bool force = false,
})

Give search to perform a search.

Basically, it returns itself.

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;
  _splitBygram = null;
  clear();
  await load();
  return this;
}