ZenScopeStackTracker class

Stack-based scope parent tracking for reliable hierarchical scope inheritance

This class maintains a stack of active scopes to enable automatic parent scope resolution based on the actual navigation/widget hierarchy.

Constructors

ZenScopeStackTracker.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

clear() → void
Clear the entire stack (useful for testing or app reset)
getCreationTime(String scopeName) DateTime?
Get the creation time of a scope
getCurrentScope() String?
Get the most recent scope (top of stack)
getCurrentStack() List<String>
Get the current active scope stack
getDebugInfo() Map<String, dynamic>
Get debug information about the current stack state
getParentScope(String scopeName) String?
Get the parent scope name for a given scope Returns the scope that was active immediately before the given scope
getParentScopeInstance(String scopeName) ZenScope?
Get parent scope instance using the stack
getUseParentScope(String scopeName) bool?
🔥 NEW: Get the useParentScope setting for a specific scope
isActive(String scopeName) bool
Check if a scope is currently in the stack
popScope(String scopeName) → void
Called when a scope is disposed or becomes inactive
pushScope(String scopeName, {bool useParentScope = false}) → void
Called when a new scope is created and becomes active