findScopeByName static method

ZenScope? findScopeByName(
  1. String name
)

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;
}