BonfireInjector class

Class used to manager dependencies

Constructors

BonfireInjector()
factory

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

dispose() → void
This method clean all dependencies registered.
get<T>() → T
Used to get dependency registered
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put<T>(BuildDependency<T> build) → void
Used to register dependency as a Singleton. Always that you call get this will be return the same instance. When you use this to register a StateController all components that use he will be use the same instance.
putFactory<T>(BuildDependency<T> build) → void
Used to register dependency as a Factory. Always that you call get this will be return a new instance. When you use this to register a StateController all components that use he will be using different instances.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance BonfireInjector
final