findScopeByName static method
Find scope by name in the hierarchy
Implementation
static ZenScope? findScopeByName(String name) {
final allScopes = getAllScopes();
for (final scope in allScopes) {
if (scope.name == name) {
return scope;
}
}
return null;
}