ProviderDefinition<T> class

Koin bean definition main structure to make definition in Koin

Constructors

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

Properties

definition ProviderCreateBase<T>
final
hashCode int
The hash code for this object.
read-onlyoverride
kind → Kind
final
onDispose ↔ Callback<T>
read / write
options → Options
final
primaryType Type
final
qualifier Qualifier
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
scopeDefinition → ScopeDefinition
final
secondaryTypes List<Type>
read / write

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 non-existent method or property is accessed.
inherited
onClose(void onDispose(T value)) ProviderDefinition<T>
OnCloseCallback is called when definition is closed.
toString() String
A string representation of this object.
override

Operators

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