Context class

This abstract class is implemented by the internal injection context and provides the interface for registering services.

Constructors

Context()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
register<T>(ServiceInitializer<T> globalInitializer, {String name, bool asSingleton = true}) → void
This method shall be called to register a service with the injection context. It must only be called, after the startup has been called.
toString() String
A string representation of this object.
inherited

Operators

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