ExactTypeExpectation class
Passed down when a node must have a known type.
- Inheritance
-
- Object
- TypeExpectation
- ExactTypeExpectation
Constructors
- ExactTypeExpectation.new(ResolvedType type)
-
const
- ExactTypeExpectation.laxly(ResolvedType type)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lax → bool
-
Whether the child node max have another type than type.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- specificity → int
-
no setteroverride
- type → ResolvedType
-
The type we expect the child nodes to have.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
orMoreSpecific(
TypeExpectation other) → TypeExpectation -
Returns the expectaction from
this
orother
with a higher specificity.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited