DependencyElement class
Statically analyzed information necessary to satisfy a dependency.
Constructors
- DependencyElement(TokenElement token, {TypeTokenElement? type, bool host = false, bool optional = false, bool self = false, bool skipSelf = false})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- host → bool
-
Whether the dependency should be satisfied from the parent only.
final
- optional → bool
-
Whether the dependency may be omitted (i.e. be
null
).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- self → bool
-
Whether the dependency should be satisfied from itself only.
final
- skipSelf → bool
-
Whether the dependency should never be satisfied from itself.
final
- token → TokenElement
-
Token to use to lookup the dependency.
final
- type → TypeTokenElement?
-
Type of this dependency.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override