InstanceFactory<T> class
abstract
Koin Instance Holder create/get/release an instance of given definition
- Implementers
Constructors
-
InstanceFactory({required Koin koin, required ProviderDefinition<
T> beanDefinition})
Properties
-
beanDefinition
→ ProviderDefinition<
T> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- koin → Koin
-
final
- 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
-
dispose(
) → void - Release the held instance (if hold)
-
get(
InstanceContext context) → T - Retrieve an instance @param context @return T
-
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