DependencyModel class

A serializable representation of a dependency registration.

A DependencyModel describes the registration metadata and current instance state as observed by StateSnapshot.

Constructors

DependencyModel({required int scopeId, required String key, required bool isLazy, required bool isFactory, required bool isAsync, required DependencyStatus status, DependencyType type = DependencyType.other, String? value})
Creates a dependency snapshot model.

Properties

hashCode int
The hash code for this object.
no setterinherited
isAsync bool
Whether this registration uses an asynchronous builder.
final
isFactory bool
Whether this registration is a factory (created on every lookup).
final
isLazy bool
Whether this registration is lazy (created on first lookup).
final
key String
The registration key within the scope.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopeId int
The owning scope identifier.
final
status DependencyStatus
The current registration lifecycle status.
getter/setter pair
type DependencyType
The detected instance classification.
getter/setter pair
value String?
A string representation of the instance, if available.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this model to a JSON-serializable map.
toString() String
A string representation of this object.
inherited

Operators

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