getScopesAtDepth static method

List<ZenScope> getScopesAtDepth(
  1. int depth
)

Get all scopes at a specific depth level

Implementation

static List<ZenScope> getScopesAtDepth(int depth) {
  final allScopes = getAllScopes();

  return allScopes.where((scope) => getScopeDepth(scope) == depth).toList();
}