DependencyDiagnostics class

A snapshot of a single registered dependency's descriptor and current resolution state, for inspection/diagnostics only - see Deps.debugOwnDependencies, which is what flutter_lean_di's diagnostics extensions build on to show a Deps hierarchy.

Annotations

Constructors

DependencyDiagnostics({required Dependency<Object> dependency, required Object? value, required Registerable origin})
Snapshots dependency's registration/resolution state - see Deps.debugOwnDependencies.
const

Properties

dependency → Dependency<Object>
The registered dependency's immutable descriptor.
final
hashCode → int
The hash code for this object.
no setterinherited
isResolved → bool
Whether value has been resolved yet.
no setter
isStandalone → bool
Whether this dependency was registered on its own - i.e. passed directly to Deps.add/Deps.addAll - rather than grouped inside another Registerable like a Module.
no setter
key → DependencyKey
The key dependency is registered under - see Dependency.key.
no setter
module → Module?
The Module this dependency was registered as part of, or null if it was registered standalone (see isStandalone) or grouped by some other, non-Module Registerable.
no setter
origin → Registerable
The Registerable this dependency was actually passed to Deps.add/Deps.addAll as part of - dependency itself when it was registered on its own, or e.g. a Module when it was registered as part of a group. See isStandalone and module.
final
runtimeType → DependencyKey
A representation of the runtime type of the object.
no setterinherited
value → Object?
The dependency's current resolved value - same as Deps.peek would return for key - or null if it's registered but hasn't been created yet.
final

Methods

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

Operators

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