Module class

Koin Module Gather/help compose Koin definitions @author - Arnaud GIULIANI

Ported to Dart from Kotlin by: @author - Pedro Bissonho

Constructors

Module([bool createAtStart = false, bool override = false])

Properties

createAtStart bool
final
hashCode int
The hash code for this object.
read-onlyinherited
isLoaded bool
read / write
override bool
final
rootScope ↔ ScopeDefinition
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
scopeDefinitions List<ScopeDefinition>
read / write

Methods

factory<T>(ProviderCreate<T> create, {Qualifier qualifier, bool createdAtStart = false, bool override = false}) ProviderDefinition<T>
Declare a Factory definition
factoryWithParam<T, A>(ProviderCreateParam<T, A> create, {Qualifier qualifier, bool createdAtStart = false, bool override = false}) ProviderDefinition<T>
Declare a Factory definition
makeOptions({bool override, bool createdAtStart = false}) → Options
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
scope<T>(dynamic makeScope(ScopeDSL dsl)) → void
Class Typed Scope
scopeOne<T, TScope>(ProviderCreate<T> create, {Qualifier qualifier, bool createdAtStart = false, bool override = false}) ProviderDefinition<T>
Declare in a simplified way a scope that has only one definition. Declare a definition T for scope TScope. Declare and define a scoped with just one line.
scopeWithType(Qualifier qualifier, dynamic scopeCreate(ScopeDSL dsl)) → void
Declare a group a scoped definition with a given scope qualifier @param qualifier
single<T>(ProviderCreate<T> create, {Qualifier qualifier, bool createdAtStart = false, bool override = false}) ProviderDefinition<T>
Declare a Single definition
singleWithParam<T, A>(ProviderCreateParam<T, A> create, {Qualifier qualifier, bool createdAtStart = false, bool override = false}) ProviderDefinition<T>
Declare a Single definition
toString() String
A string representation of this object.
inherited

Operators

operator +(Module other) List<Module>
operator ==(Object other) bool
The equality operator.
inherited