SingleInstanceFactory<T> class

Single definition Instance holder

Inheritance

Constructors

SingleInstanceFactory(Koin koin, ProviderDefinition<T> beanDefinition)

Properties

beanDefinition ProviderDefinition<T>
finalinherited
created bool
no setter
hashCode int
The hash code for this object.
no setterinherited
koin Koin
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createState(InstanceContext context) → T
Create an instance @param context @return T
override
dispose() → void
Release the held instance (if hold)
override
get(InstanceContext context) → T
Retrieve an instance @param context @return T
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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