InjectorBuilder class abstract

Builder to create Injector instances.

Implemented types

Constructors

InjectorBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bindFactory<T>(ObjectFactory<T> factory, {String name, bool override}) FactoryBinding<T>
Binds a factory which will create a new instance every time.
inherited
bindLazySingleton<T>(ObjectFactory<T> factory, {String name, bool override}) LazySingletonBinding<T>
Binds a lazy loaded singleton.
inherited
bindSingleton<T>(T instance, {String name, bool override}) SingletonBinding<T>
Binds an instance.
inherited
build() Injector
Builds the Injector. Note that anything binded to this InjectorBuilder won't make it to the Injector.
child() InjectorBuilder
Creates another InjectorBuilder with the bindings of this InjectorBuilder].
install(Configurer configurer) Iterable<Binding>
Installs all the dependencies from the given Configurer.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setName(String name) → void
Sets the name of the injector.
toString() String
A string representation of this object.
inherited

Operators

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