Binder class abstract

Represents an object able to bind instances to the dependency injection container.

Implemented types
Implementers

Constructors

Binder()

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.
bindLazySingleton<T>(ObjectFactory<T> factory, {String name, bool override}) LazySingletonBinding<T>
Binds a lazy loaded singleton.
bindSingleton<T>(T instance, {String name, bool override}) SingletonBinding<T>
Binds an instance.
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
toString() String
A string representation of this object.
inherited

Operators

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