InjectorRegistry class abstract

Dependency injection container static factory.

Constructors

InjectorRegistry()
Creates a new InjectorRegistry to keep track of different named Injector. To use a singleton call InjectorRegistry.instance.
factory

Properties

disposed bool
disposed will be true if this object was disposed
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

contains({String name}) bool
Checks whether this InjectorRegistry contains an Injector instance.
dispose() → void
call dispose to dispose the object and mark it as disposed
inherited
disposeInstance() → void
Override this method to provide dispose logic for the concrete object.
inherited
get({String? name}) Injector
Gets an injector from this InjectorRegistry.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(Injector injector, {bool override}) → void
Registers the given Injector in this InjectorRegistry.
registerAll(Iterable<Injector> injectors, {bool override}) → void
Registers many the Injector instances in this InjectorRegistry.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance InjectorRegistry
Gets the singleton instance.
final