LazyRef<T> class
Reference to a lazily instantiated dependency
- Implemented types
-
- Ref<
T>
- Ref<
Constructors
- LazyRef.new({String? tag, ZenScope? scope})
Properties
Methods
-
delete(
{bool force = false}) → bool -
Delete the instance
override
-
exists(
) → bool -
For lazy references, check if dependency is registered or instantiated
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
-
putLazy(
T factory(), {bool isPermanent = true}) → void - Register a lazy factory
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited