allScopes property
Get all active scopes starting from root
This recursively collects all scopes in the hierarchy starting from the root scope. Scopes created outside the root hierarchy (standalone scopes) won't be included.
Implementation
static List<ZenScope> get allScopes {
final scopes = <ZenScope>[];
_collectScopesRecursively(Zen.rootScope, scopes);
return scopes;
}