setActiveScope function

EffectScope? setActiveScope([
  1. EffectScope? scope
])

Set the currently active subscriber

Implementation

@pragma('vm:prefer-inline')
@pragma('wasm:prefer-inline')
@pragma('dart2js:prefer-inline')
EffectScope? setActiveScope([EffectScope? scope]) {
  final prevScope = activeScope;
  activeScope = scope;
  return prevScope;
}