EagerRef<T> class

Reference to an eagerly instantiated dependency

Implemented types

Constructors

EagerRef.new({String? tag, ZenScope? scope})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope ZenScope?
final
tag String?
final

Methods

delete({bool force = false}) bool
Delete the instance
override
exists() bool
Check if instance exists
override
find() → T
Get the instance (throws if not found)
override
findOrNull() → T?
Find the instance (returns null if not found)
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(T instance, {bool? isPermanent}) → T
Register an instance
toString() String
A string representation of this object.
inherited

Operators

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