state property

TRegistryState get state

A snapshot describing the current state of the dependencies.

Returns a deep, unmodifiable copy so external callers cannot mutate the registry through the returned reference. This is the safe accessor for public use — the deep copy is intentional.

On hot paths internal to this package, prefer groupSlots (no copy of the outer map, single snapshot of one group's values).

Implementation

@pragma('vm:prefer-inline')
TRegistryState get state => TRegistryState.unmodifiable(
      _state,
    ).map((k, v) => MapEntry(k, Map.unmodifiable(v)));