ZenScopeInspector class

Debugging and introspection utilities for ZenScope Separated from core functionality to keep ZenScope clean

Constructors

ZenScopeInspector()

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

dumpScope(ZenScope scope, StringBuffer buffer, int indent) → void
Recursively dump scope information with proper indentation
getAllInstances(ZenScope scope) → Map<Type, dynamic>
Get all instances registered in a scope (for debugging and introspection) Returns a map of Type -> instance for easy inspection
getDependencyBreakdown(ZenScope scope) → Map<String, dynamic>
Get a detailed breakdown of dependencies by category Useful for understanding what's in your scope
getRegisteredTypes(ZenScope scope) → List<Type>
Get all registered types (including tagged instances) Useful for debugging what types are available in a scope
getScopePath(ZenScope scope) → List<String>
Find the path from root scope to a given scope Useful for understanding scope hierarchy
toDebugMap(ZenScope scope) → Map<String, dynamic>
Get comprehensive debugging information about a scope Perfect for DevTools integration or debug logs