dimeCloseScope function
Closes scope by name or scope
Implementation
void dimeCloseScope({String? name, DimeScope? scope}) {
if (name != null) {
_rootScope.closeScope(name: name);
} else if (scope != null) {
_rootScope.closeScope(scope: scope);
}
}