ResolvedType class
Constructors
-
ResolvedType({BasicType? type, List<
TypeHint> hints = const [], bool? nullable = false, bool isArray = false}) -
const
- ResolvedType.bool({bool? nullable = false})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
-
hints
→ List<
TypeHint> -
We set hints for additional information that might be useful for
applications but aren't covered by just exposing a BasicType. See the
comment on
TypeHint
for examples.final - isArray → bool
-
Whether this type is an array.
final
- nullable → bool?
-
Whether this type is nullable. A
null
value for nullable indicates that nullability is unknown.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → BasicType?
-
final
- withoutNullabilityInfo → ResolvedType
-
no setter
Methods
-
addHint(
TypeHint hint) → ResolvedType -
copyWith(
{List< TypeHint> ? hints, bool? nullable, bool? isArray}) → ResolvedType -
hint<
T extends TypeHint> () → T? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toArray(
bool? array) → ResolvedType -
toString(
) → String -
A string representation of this object.
override
-
withNullable(
bool nullable) → ResolvedType
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override