setActiveScope function
Sets the ambient scope for newly created effects.
Returns the previously active scope, if any.
Implementation
@pragma("vm:prefer-inline")
@pragma("wasm:prefer-inline")
@pragma("dart2js:prefer-inline")
EffectScopeNode? setActiveScope([EffectScopeNode? scope]) {
final prevScope = activeScope;
activeScope = scope;
return prevScope;
}