getQueriesWithPrefix method

List<Query> getQueriesWithPrefix(
  1. String prefix
)

Finds all the Query that starts with the given prefix

Implementation

List<Query> getQueriesWithPrefix(String prefix) {
  return cache.queries
      .where((query) => query.key.startsWith(prefix))
      .toList();
}