getScopeQueries method

List<ZenQuery> getScopeQueries(
  1. String scopeId
)

Get all queries in a specific scope

Implementation

List<ZenQuery> getScopeQueries(String scopeId) {
  final scopeQueries = _scopeQueries[scopeId];
  if (scopeQueries == null) return [];

  return scopeQueries
      .map((key) => _queries[key])
      .whereType<ZenQuery>()
      .toList();
}