TypeMethods extension
Extension adding the type methods to ConstantReader
.
- on
-
- ConstantReader
Properties
- dartType → DartType?
-
Returns the static type of
this
.no setter -
dartTypeArgs
→ List<
DartType> -
Returns a
List
of type arguments or an empty list.no setter - isCollection → bool
-
Returns
true
if the static type represents aList
,Set
,Map
, orIterable
.no setter - isDynamic → bool
-
Returns
true
ifthis
represents a constant expression with typedynamic
.no setter - isIterable → bool
-
Returns
true
isthis
represents a constant expression with type exactlyIterable
.no setter - isNotCollection → bool
-
Returns
true
if the static type does not representList
,Set
,Map
, orIterable
.no setter - isRecursiveCollection → bool
-
Returns
true
if the static type and the static type argument represent aList
,Set
,Map
, orIterable
no setter