InjectionToken extension type

A simple class to represent an injection token.

on

Constructors

InjectionToken(String name)
InjectionToken.fromModule(Module module)
The token is taken from the module name or the module type if the name is empty.
factory
InjectionToken.fromProvider(Provider provider)
The token is taken from the provider type
factory
InjectionToken.fromType(Type type)
The token is take from the object type
factory
InjectionToken.fromValueToken(ValueToken token)
The token is taken from a ValueToken.
factory

Properties

name String
final

Static Properties

global InjectionToken
The global token is used to register global providers.
final