ProviderDefinition<T> class

Koin bean definition main structure to make definition in Koin

Constructors

ProviderDefinition({required ScopeDefinition scopeDefinition, required Type primaryType, required Qualifier? qualifier, required ProviderCreateBase<T> definition, required Kind kind, Options options = const Options(), Callback<T>? onDispose, List<Type> secondaryTypes = const <Type>[]})

Properties

definition ProviderCreateBase<T>
final
hashCode int
The hash code for this object.
no setteroverride
kind → Kind
final
onDispose ↔ Callback<T>
latefinal
options → Options
final
primaryType Type
final
qualifier Qualifier?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopeDefinition → ScopeDefinition
final
secondaryTypes List<Type>
final

Methods

bind<S>() ProviderDefinition
Definition Binding
binds(List<Type> types) ProviderDefinition
Definition Bindings
canBind(Type primary, Type secondary) bool
copy({List<Type>? secondaryTypes, Callback<T>? onDispose}) ProviderDefinition<T>
hasType(Type type) bool
isIt(Type type, Qualifier? qualifier, ScopeDefinition scopeDefinition) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onClose(void onDispose(T value), {required void onDisposeUnitialized()}) ProviderDefinition<T>
OnCloseCallback is called when definition is closed.
toString() String
A string representation of this object.
override

Operators

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