findResults method

Future<List<T>> findResults()

Executes a search and finds the results. See also execute

Implementation

Future<List<T>> findResults() async {
  List<T> result;
  final executed = await execute();
  if (limit != null) {
    result = executed.take(limit!).map((item) => item.result).toList();
  } else {
    result = executed.map((item) => item.result).toList();
  }
  return result;
}