Container class

Implemented types

Constructors

Container()

Properties

autoWire bool
Determines if auto wiring is enabled
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
loadedServices Map<String, dynamic>
Returns all loaded
no setter
parameters Map<String, dynamic>
Returns all registered parameters
no setter
registeredServices Map<String, dynamic>
Returns all registered services
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addParameter(String name, dynamic value) → void
Adds a new parameter to the container
get(String id) → dynamic
Returns a registered service by id
override
getParameter(String name) → dynamic
Retrieve a specific registered parameter by name
has(String id) bool
Checks, if a service with the id is registered
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(String id, dynamic service, [dynamic arguments = const <dynamic>[]]) → void
Register a service to the container
setParameter(String name, dynamic value, [bool override = true]) → void
Sets a parameter
toString() String
A string representation of this object.
inherited
unregister(String id) → void
Unregister a registered service
unsetParameter(String name) → void
Removes a parameter

Operators

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