TokenReader class
Support for reading and parsing a "token" for dependency injection.
In AngularDart this is either an OpaqueToken or a Type.
Constructors
- TokenReader()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
linkToOpaqueToken(
DartType type) → TypeLink -
Returns
typeas a TypeLink to the corresponding class definition. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseTokenObject(
DartObject object, [ParameterElement? element]) → TokenElement -
Returns
objectparsed into a TokenElement. -
parseTokenParameter(
ParameterElement element) → TokenElement -
Returns
elementparsed into a TokenElement. -
parseTokenType(
ParameterElement element) → TypeTokenElement -
Returns the type of
elementas a TokenElement. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited