ScopeSnapshot class final

Represents the snapshot state of a single scope (or container level) in the hierarchy.

Constructors

ScopeSnapshot({required String id, required String name, required int depth, required bool isRoot, required bool isDisposed, String? parentId, required List<String> childIds, required int directRegistrationCount})
Creates a new ScopeSnapshot.
const
ScopeSnapshot.fromJson(Map<String, dynamic> json)
Deserializes a ScopeSnapshot from a JSON map.
factory

Properties

childIds → List<String>
The IDs of immediate child scopes.
final
depth → int
0-based depth level from root (0 = root).
final
directRegistrationCount → int
Number of direct registrations in this scope.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique identifier for this scope (e.g. scope memory hash or name-path).
final
isDisposed → bool
Whether this scope has been disposed.
final
isRoot → bool
Whether this scope is the root container.
final
name → String
Human-readable name of this scope, or "<unnamed>".
final
parentId → String?
The ID of the parent scope, or null if this is root.
final
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
toJson() → Map<String, dynamic>
Serializes this scope snapshot into a JSON-compatible map.
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

empty → const ScopeSnapshot
Fallback empty scope.