RoughTypeExpectation class
Passed down when the general type must match (e.g. "numeric), but the exact type is unknown.
This makes no expectation on nullability.
- Inheritance
-
- Object
- TypeExpectation
- RoughTypeExpectation
Constructors
- RoughTypeExpectation.numeric()
-
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
- specificity → int
-
no setteroverride
Methods
-
accepts(
ResolvedType type) → bool -
defaultType(
) → ResolvedType -
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