Inject class

Inject a specific parameter or a list of services with a specific tag. You can only use one property.

Constructors

Inject({Symbol? tag, String? parameter})
Creates a new inject annotation.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
parameter String?
The name of the bound parameter inside ServiceProvider.parameters.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag Symbol?
If tag is set, the provider will inject an array with all services with the given tag. If no services are tagged with the tag, an empty list will be injected.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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