getActiveScope function
Returns the EffectScopeReactiveNode that is currently open.
Example:
final scope = getActiveScope();
scope?.dispose();
Implementation
@pragma("vm:prefer-inline")
@pragma("wasm:prefer-inline")
@pragma("dart2js:prefer-inline")
/// Returns the [EffectScopeReactiveNode] that is currently open.
///
/// Example:
/// ```dart
/// final scope = getActiveScope();
/// scope?.dispose();
/// ```
EffectScopeReactiveNode? getActiveScope() => activeScope;